IChartData Interface

Represents data used for a chart plotting.

Namespace:  Aspose.Slides.Charts
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.9.0.0 (21.9)
Syntax
public interface IChartData

The IChartData type exposes the following members.

Properties
  NameDescription
Public propertyCode exampleCategories
Gets the primary categories (or both primary and secondary categories if UseSecondaryCategories property is false). Read-only IChartCategoryCollection.
Public propertyChartDataWorkbook
Gets the cells factory to create cells used for chart series or categories. Read-only IChartDataWorkbook.
Public propertyDataSourceType
Represents data source of the chart
Public propertyExternalWorkbookPath
Represents external workbook path if data source is external, null otherwise
Public propertyCode exampleSecondaryCategories
Gets the secondary categories if UseSecondaryCategories property is true. Read-only IChartCategoryCollection.
Public propertySeries
Gets the series. Read-only IChartSeriesCollection.
Public propertySeriesGroups
Gets the groups of series. Read-only IChartSeriesGroupCollection.
Public propertyCode exampleUseSecondaryCategories
If false then SecondaryCategories property return null and data in Categories property is used both for primary and secondary series. If true then data in SecondaryCategories property is used for secondary series and data in Categories property is used for primary series. Read/write Boolean.
Methods
  NameDescription
Public methodCode exampleGetRange
Gets chart data range.
Public methodReadWorkbookStream
Writes the internally contained Excel workbook it into an in-memory stream.
Public methodCode exampleSetExternalWorkbook(String)
Sets external workbook as a data source for the chart. Chart data will be updated from the target workbook.
Public methodCode exampleSetExternalWorkbook(String, Boolean)
Sets external workbook as a data source for the chart.
Public methodSetRange
Set chart data range. Series and categories will be updated based on new data range. If amount of series in data range greater than count of series in the chart data then additional series with the same type as a last series in the current collection will be added to the end of the collection.
Public methodSwitchRowColumn
Swap the data over the axis. Data being charted on the X axis will move to the Y axis and vice versa.
Public methodWriteWorkbookStream
Initializes the internally contained Excel workbook with user-specified value.
See Also