Class ChartWithSeries<DS>
Represents the chart with series used by the presentation model.
Inheritance
Implements
Inherited Members
Namespace: DRIT.Presentation.Chart
Assembly: DRIT.Presentation.dll
Syntax
public abstract class ChartWithSeries<DS> : PresentationChart, IDrawingObject where DS : DataSeries
Type Parameters
| Name | Description |
|---|---|
| DS |
Constructors
ChartWithSeries(Presentation)
Initializes a new instance of the chart with series class.
Declaration
public ChartWithSeries(Presentation presentation)
Parameters
| Type | Name | Description |
|---|---|---|
| Presentation | presentation |
Properties
DataSeries
Gets the collection of data series associated with this object.
Declaration
public SeriesCollection<DS> DataSeries { get; }
Property Value
| Type | Description |
|---|---|
| SeriesCollection<DS> |
VaryColorsByPoint
Gets or sets the vary colors by point associated with this object.
Declaration
public bool VaryColorsByPoint { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
AddSeries(string, IEnumerable<double>)
Adds a data series with the specified name and values.
Declaration
public DS AddSeries(string seriesName, IEnumerable<double> values)
Parameters
| Type | Name | Description |
|---|---|---|
| string | seriesName | The display name assigned to the series. |
| IEnumerable<double> | values | The values assigned to the series or property. |
Returns
| Type | Description |
|---|---|
| DS | The newly added series. |
AddSeries(string, params double[])
Adds a data series with the specified name and values.
Declaration
public DS AddSeries(string seriesName, params double[] values)
Parameters
| Type | Name | Description |
|---|---|---|
| string | seriesName | The display name assigned to the series. |
| double[] | values | The values assigned to the series or property. |
Returns
| Type | Description |
|---|---|
| DS | The newly added series. |
SetCategoryLabels(IEnumerable<string>)
Sets the category labels used by the chart's data series.
Declaration
public void SetCategoryLabels(IEnumerable<string> labels)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<string> | labels | The category labels assigned to the chart series. |
SetCategoryLabels(params string[])
Sets the category labels used by the chart's data series.
Declaration
public void SetCategoryLabels(params string[] labels)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | labels | The category labels assigned to the chart series. |