AddDataPointForMapSeries
IChartDataPointCollection.AddDataPointForMapSeries 方法
创建新的数据点并将其添加到集合的末尾。适用于图表类型为地图的系列。
public IChartDataPoint AddDataPointForMapSeries(IChartDataCell value)
参数 | 类型 | 描述 |
---|---|---|
value | IChartDataCell | 数据点 ColorValue |
返回值
新的数据点。
示例
[C#]
using (Presentation pres = new Presentation())
{
IChart chart = sourcePres.Slides[0].Shapes.AddChart(ChartType.Map, 50, 50, 500, 400, false);
IChartDataWorkbook wb = chart.ChartData.ChartDataWorkbook;
IChartSeries series = chart.ChartData.Series.Add(ChartType.Map);
series.DataPoints.AddDataPointForMapSeries(wb.GetCell(0, "B2", 5));
series.DataPoints.AddDataPointForMapSeries(wb.GetCell(0, "B3", 1));
series.DataPoints.AddDataPointForMapSeries(wb.GetCell(0, "B4", 10));
}
另请参阅
- interface IChartDataPoint
- interface IChartDataCell
- interface IChartDataPointCollection
- namespace Aspose.Slides.Charts
- assembly Aspose.Slides