• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

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.

Inheritance
object
ChartData
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Document.Chart.Office
Assembly: DRIT.Document.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()
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX