AddDataPointForMapSeries()
IChartDataPointCollection::AddDataPointForMapSeries(System::SharedPtr<IChartDataCell>) method
Creates the new data point and adds it to the end of collection. Applicable for series which chart type is Map.
virtual System::SharedPtr<IChartDataPoint> Aspose::Slides::Charts::IChartDataPointCollection::AddDataPointForMapSeries(System::SharedPtr<IChartDataCell> value)=0
Arguments
Parameter | Type | Description |
---|---|---|
value | System::SharedPtr<IChartDataCell> | Data point ColorValue |
Return Value
New data point.
Remarks
auto pres = System::MakeObject<Presentation>();
auto chart = pres->get_Slides()->idx_get(0)->get_Shapes()->AddChart(Aspose::Slides::Charts::ChartType::Map, 50.0f, 50.0f, 500.0f, 400.0f, false);
auto wb = chart->get_ChartData()->get_ChartDataWorkbook();
auto series = chart->get_ChartData()->get_Series()->Add(Aspose::Slides::Charts::ChartType::Map);
series->get_DataPoints()->AddDataPointForMapSeries(wb->GetCell(0, u"B2", System::ObjectExt::Box<int32_t>(5)));
series->get_DataPoints()->AddDataPointForMapSeries(wb->GetCell(0, u"B3", System::ObjectExt::Box<int32_t>(1)));
series->get_DataPoints()->AddDataPointForMapSeries(wb->GetCell(0, u"B4", System::ObjectExt::Box<int32_t>(10)));
See Also
- Typedef SharedPtr
- Class IChartDataPoint
- Class IChartDataCell
- Class IChartDataPointCollection
- Namespace Aspose::Slides::Charts
- Library Aspose.Slides