Skip to main content

ArrayBasedSeries

A series in which each category is represented by a single record, which has a field containing an array of values. This series type requires that the user provides a start point. The series has a default 'step' of 1, meaning that the series advances by 1 for each subsequent value in the array, but you can set the step. By default the series will extract the array of values from a field names 'values', but that can also be set.

It is not necessary that each record has the same number of data points. By default, if some record has fewer points than other records, its series will just be truncated. You can also provide a rangeStart value inside a series record, which indicates where the array of values for the given series begins.

Methods

expand()

expand(): RealisedSeries[]

Expand the given series into a set of RealisedSeries objects. For RecordBasedSeries this just means to return the series itself, as it is already fully realised. But for ArrayBasedSeries this method returns a set of RealisedSeries, one for each value that was added to the array based series.

Returns

RealisedSeries[]

Overrides

ChartSeries.expand