Aspose::Cells::Charts::Series::GetPointValues method
Contents
[
Hide
]Series::GetPointValues method
Gets the actual values that are used to plot every point of this series in the chart.
Vector<ChartDataValue> Aspose::Cells::Charts::Series::GetPointValues()
Remarks
This property provides one convenient way to get the actual values corresponding to the data defined by Series.Values, especially when the specified data source is external link, formula, …etc.
Examples
Aspose::Cells::Startup();
Workbook workbook(u"ExternalSourceChart.xlsx");
Worksheet worksheet = workbook.GetWorksheets().Get(0);
Chart chart = worksheet.GetCharts().Get(0);
chart.Calculate();
U16String Values = chart.GetNSeries().Get(0).GetValues();
// Values could be like "[External.xlsx]Sheet1!$A$1:$A$6" which is complicated
// for user to get the actual values(the values may be linked to another workbook,
// or cached in current workbook). Here you can use PointValues property
// to get the values actually displayed in the Excel interface
// in the form of an array.
//Vector<ChartDataValue> v1 = chart.GetNSeries().Get(0).GetPointValues();
Aspose::Cells::Cleanup();
See Also
- Class Vector
- Class ChartDataValue
- Class Series
- Namespace Aspose::Cells::Charts
- Library Aspose.Cells for C++