AddDataPointForMapSeries

ChartDataPointCollection.AddDataPointForMapSeries method

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

public IChartDataPoint AddDataPointForMapSeries(IChartDataCell value)
ParameterTypeDescription
valueIChartDataCellData point ColorValue

Return Value

New data point.

Examples

[C#]
using (Presentation pres = new Presentation())
{
   IChart chart = pres.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