IChartDataPointCollectionAddDataPointForMapSeries Method

Creates the new data point and adds it to the end of collection. Applicable for series which chart type is Map.

Namespace:  Aspose.Slides.Charts
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.12.0.0 (21.12)
Syntax
IChartDataPoint AddDataPointForMapSeries(
	IChartDataCell value
)

Parameters

value
Type: Aspose.Slides.ChartsIChartDataCell
Data point ColorValue

Return Value

Type: IChartDataPoint
New data point.
Examples
[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));
}
See Also