AddDataPointForMapSeries

IChartDataPointCollection.AddDataPointForMapSeries method

Crea un nuevo punto de datos y lo agrega al final de la colección. Aplicable para series cuyo tipo de gráfico es Mapa.

public IChartDataPoint AddDataPointForMapSeries(IChartDataCell value)
ParámetroTipoDescripción
valueIChartDataCellColorValue del punto de datos

Valor de retorno

Nuevo punto de datos.

Ejemplos

[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));
}

Ver también