Skip to main content

ArrayBasedSeriesOptions

Array based chart series - each category is represented by a single record, which has either a field containing an array of values, or both a field containing minimum values and a field containing maximum values.

Extends

Properties

color?

optional color: string

Color to use for the series. This is optional and if not provided the chart will use a color from its installed ColorGenerator.

Inherited from

ChartSeriesOptions.color


id?

optional id: string

The id of the series.

Inherited from

ChartSeriesOptions.id


idField?

optional idField: string

Optional field which contains the ID for the series. If not provided, an id will be auto generated.


label?

optional label: string

Label for the series. Optional.

Inherited from

ChartSeriesOptions.label


labelField?

optional labelField: string

Optional field which contains the label for the series itself. Defaults to "label".


labelGenerator?

optional labelGenerator: ArraySeriesLabelGenerator

Optional function to use to generate labels for each step in the array series. This offers the most customisation of all - each time a data point in the series is drawn, this function is invoked, and the return value is used as the label on the category axis.

Param

Param


labels?

optional labels: string[]

Labels to use for the series. Optional. If omitted the label for each data point is computed from startPoint + step. Providing labels in the series is useful when your data is not strictly numeric increasing, or you want to customise its display.


marker?

optional marker: string

Optional template to use for markers. This should be a string in VisuallyJs's internal template format, with namespaced SVG elements.

Inherited from

ChartSeriesOptions.marker


markerSize?

optional markerSize: number

Size (in pixels) to use for data points. Defaults to 10 pixels. For circular markers this equates to the diameter; for square/cross this is width/height

Inherited from

ChartSeriesOptions.markerSize


markerType?

optional markerType: "square" | "circle" | "cross"

Type of marker to draw. Defaults to "circle".

Inherited from

ChartSeriesOptions.markerType


maxValuesField?

optional maxValuesField: string

The field containing the array of maximum values. This is required if you want to draw an Area chart - and you also need to provide the minValuesField. Defaults to "maxValues".


minValuesField?

optional minValuesField: string

The field containing the array of minimum values. This is required if you want to draw an Area chart - and you also need to provide the maxValuesField. Defaults to "minValues".


rangeStartField?

optional rangeStartField: string

Currently unused.


resolveMarker?

optional resolveMarker: MarkerResolutionFunction

Optional function to resolve a marker SVG string for each data point.

Inherited from

ChartSeriesOptions.resolveMarker


startPoint?

optional startPoint: number

Start value for the series. Defaults to 0.


step?

optional step: number

Step between values in the series. Defaults to 1.


type?

optional type: string

Defines the series type.

Inherited from

ChartSeriesOptions.type


valuesField?

optional valuesField: string

The field containing the array of values. Defaults to "values".