AddDataPointForMapSeries

IChartDataPointCollection.AddDataPointForMapSeries-Methode

Erstellt den neuen Datenpunkt und fügt ihn am Ende der Sammlung hinzu. Anwendbar für Serien, deren Diagrammtyp Karte ist.

public IChartDataPoint AddDataPointForMapSeries(IChartDataCell value)
ParameterTypBeschreibung
valueIChartDataCellDatenpunkt ColorValue

Rückgabewert

Neuer Datenpunkt.

Beispiele

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

Siehe auch