Interface: GradientLegendOptions
Extends
Properties
enabled?
optionalenabled?:boolean
Inherited from
label?
optionallabel?:Switchable&object
Labels of the scale ends (enabled by default).
Type Declaration
format?
optionalformat?:string
Serializable format string (',.2f', '.0%'); formatter wins over it.
formatter?
optionalformatter?: (params) =>string
Text of an end label (the raw value by default).
Parameters
params
value
number
Returns
string
position?
optionalposition?:GradientLegendPosition
Side on which the scale is placed (right by default).
spacing?
optionalspacing?:number
Spacing between the scale and the plot area (10 by default).
thickness?
optionalthickness?:number
Thickness of the color bar (12 by default).