ChartDataGetRange Method

Gets chart data range.

Namespace:  Aspose.Slides.Charts
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 22.5.0.0 (22.5)
Syntax
public string GetRange()

Return Value

Type: String
Cells data range formula. E.g: "Sheet1!$A$1:$C$4"

Implements

IChartDataGetRange
Exceptions
ExceptionCondition
InvalidOperationExceptionChart doesn't use workbook as a data source
Examples
Example C#
using (Presentation pres = new Presentation())
{
    IChart chart = pres.Slides[0].Shapes.AddChart(ChartType.PercentsStackedBar, 0, 0, 100, 100);
    string result = (chart.ChartData as ChartData).GetRange();
}
See Also