Class ChartData
Provides unified access to the data backing a chart: the category
labels and the series. Exposed via Data.
Maps to the OOXML c:chart/c:plotArea data content.
Inherited Members
Namespace: DRIT.Spreadsheet.Chart
Assembly: DRIT.Spreadsheet.dll
Syntax
public class ChartData
Properties
Categories
Gets the collection of category labels shared across all series.
Declaration
public ChartCategoryCollection Categories { get; }
Property Value
| Type | Description |
|---|---|
| ChartCategoryCollection |
Series
Gets the series belonging to this chart as a non-generic DataSeries enumeration. Returns an empty sequence for chart types that do not expose series.
Declaration
public IEnumerable<DataSeries> Series { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<DataSeries> |
SeriesCount
Gets the number of series in this chart. Returns 0 for chart types that do not expose series.
Declaration
public int SeriesCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
ApplyCategoriesToSeries()
Synchronises the category labels on every series with the Categories collection. Call this after modifying Categories so that the underlying series payloads reflect the updated labels.
Declaration
public void ApplyCategoriesToSeries()