Scale.labels
configurationConfigures the scale labels.
scale.labels
Objectscale.labels.background
StringThe background color of the labels. Any valid CSS color string will work here, including hex and rgb
scale.labels.border
ObjectThe border of the labels.
scale.labels.color
StringThe text color of the labels. Any valid CSS color string will work here, including hex and rgb.
scale.labels.font
StringThe font style of the labels.
Default: "12px Arial,Helvetica,sans-serif"
scale.labels.format
StringThe format of the labels.
scale.labels.margin
Number|ObjectThe margin of the labels.
Default: 0
scale.labels.padding
Number | ObjectThe padding of the labels.
Default: 0
scale.labels.position
Stringscale.labels.template
String|FunctionThe label template. Template variables:
- value - the value
scale.labels.visible
BooleanThe visibility of the labels.
Default: false