Skip to main content
A newer version of this page is available. .

ChartSeries Class

Serves as the base class for chart series.

Declaration

export abstract class ChartSeries extends TypedSerializableModel implements IBindingModelProvider

Remarks

The ChartSeries class descendants represent different types of chart series: bar, scatter, line and area plots (SimpleSeries), range (RangeSeries), weighted (WeightedSeries), financial (HighLowCloseSeries and OpenHighLowCloseSeries) graphs.

Chart series are stored in the ChartPane.series collection exposed by a pane that displays these series.

Inherited Members

constructor

Initializes a new instance of the ChartSeries class.

Declaration

constructor(
    seriesJSON?: any,
    serializer?: DxDesigner.Analytics.Utils.ModelSerializer
)

Parameters

Name Type Description
seriesJSON any
serializer DxDesigner.Analytics.Utils.ModelSerializer

An object used for a dashboard deserialization. Do not pass this parameter directly.

Properties

ignoreEmptyPoints Property

Specifies whether empty points are ignored when plotting the current chart series.

Declaration

ignoreEmptyPoints: ko.Observable<boolean>

Property Value

Type Description
Observable<boolean>

true, to ignore empty points; otherwise, false.

Remarks

Points that have no values defined for some of their arguments are treated as empty points. Depending on the ignoreEmptyPoints property value, chart series are plotted with or without intervals.

name Property

Specifies the name of the data item container.

Declaration

name: ko.Observable<string>

Property Value

Type Description
Observable<string>

A string that specifies the name of the data item container.

plotOnSecondaryAxis Property

Specifies a value indicating whether to plot series using the secondary axis.

Declaration

plotOnSecondaryAxis: ko.Observable<boolean>

Property Value

Type Description
Observable<boolean>

true, to plot series using the secondary axis; otherwise, false.

Remarks

Set the plotOnSecondaryAxis property to true to plot an additional series on the secondary axis.

pointLabelOptions Property

Provides access to options related to series point labels.

Declaration

pointLabelOptions: PointLabelOptions

Property Value

Type Description
PointLabelOptions

A PointLabelOptions object that contains options related to series point labels.

showPointMarkers Property

Specifies a value indicating whether series point markers are visible.

Declaration

showPointMarkers: ko.Observable<boolean>

Property Value

Type Description
Observable<boolean>

true, to show point markers; otherwise, false.

Methods

getInfo Method

For internal use.

Declaration

getInfo(): DxDesigner.Analytics.Utils.ISerializationInfoArray

Returns

Type Description
DxDesigner.Analytics.Utils.ISerializationInfoArray

 

grabFrom(series) Method

Declaration

grabFrom(
    series: ChartSeries
): void

Parameters

Name Type
series ChartSeries