ChartData class

ChartData class

Represents data used for a chart plotting.

The ChartData type exposes the following members:

Properties

PropertyDescription
chart_data_workbookGets the cells factory to create cells used for chart series or categories.
Read-only IChartDataWorkbook.
seriesGets the series.
Read-only IChartSeriesCollection.
series_groupsGets the groups of series.
Read-only IChartSeriesGroupCollection.
categoriesGets the primary categories (or both primary and secondary categories
if ChartData.use_secondary_categories property is false).
Read-only IChartCategoryCollection.
use_secondary_categoriesIf false then ChartData.secondary_categories property return null and data
in ChartData.categories property is used both for primary and secondary series.
If true then data in ChartData.secondary_categories property is used for secondary series and data
in ChartData.categories property is used for primary series.
Read/write bool.
secondary_categoriesGets the secondary categories if ChartData.use_secondary_categories property is true.
Read-only IChartCategoryCollection.
data_source_typeRepresents external workbook path if external data source, null otherwise
external_workbook_pathRepresents data source of the chart

Methods

MethodDescription
set_external_workbookSets external workbook as a data source for the chart. Chart data will be updated from the target workbook.
set_external_workbookSets external workbook as a data source for the chart.
get_rangeGets chart data range.
set_rangeSet 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.
switch_row_columnSwap the data over the axis.
Data being charted on the X axis will move to the Y axis and vice versa.

See Also