Class ChartSeries
- Namespace
- DocToolkit
- Assembly
- DocToolkit.Primitives.dll
One named series of numeric values in a ChartData.
public sealed class ChartSeries
- Inheritance
-
ChartSeries
- Inherited Members
Constructors
ChartSeries(string, IEnumerable<double>)
Creates one named series of a chart — the label its legend shows, and the values plotted against Categories.
public ChartSeries(string name, IEnumerable<double> values)
Parameters
namestringThe series' label, shown in the chart's legend.
valuesIEnumerable<double>The series' values, in the same order as Categories.
Exceptions
- ArgumentNullException
nameorvaluesis null.- ArgumentException
nameis blank, orvaluesis empty.
Properties
Name
The series' label, shown in the chart's legend.
public string Name { get; }
Property Value
Values
The series' values, in the same order as Categories.
public IReadOnlyList<double> Values { get; }