Skip to content

grafit-charts


Interface: GradientLegendOptions

Extends

Properties

enabled?

optional enabled?: boolean

Inherited from

Switchable.enabled


label?

optional label?: Switchable & object

Labels of the scale ends (enabled by default).

Type Declaration

format?

optional format?: string

Serializable format string (',.2f', '.0%'); formatter wins over it.

formatter?

optional formatter?: (params) => string

Text of an end label (the raw value by default).

Parameters
params
value

number

Returns

string


position?

optional position?: GradientLegendPosition

Side on which the scale is placed (right by default).


spacing?

optional spacing?: number

Spacing between the scale and the plot area (10 by default).


thickness?

optional thickness?: number

Thickness of the color bar (12 by default).