ChartData Class

Represents data used for a chart plotting.
Inheritance Hierarchy
SystemObject
  Aspose.Slides.ChartsChartData

Namespace:  Aspose.Slides.Charts
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 20.3.0.0 (20.3)
Syntax
public class ChartData : IChartData

The ChartData 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 external workbook path if external data source, null otherwise
Public propertyExternalWorkbookPath
Represents data source of the chart
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 methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
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 methodToString (Inherited from Object.)
Public methodWriteWorkbookStream
Initializes the internally contained Excel workbook with user-specified value.
See Also