Specifies the options of the labels that accompany gauge bars.
Each gauge bar is accompanied by a label that usually displays the value of the bar. Use the options of the label object to customize the label's text, specify its format, font, and distance between the label and the bar.
To hide labels, use the label | visible option or assign false straight to the label option.
Specifies a color for the label connector text.
This option supports the following colors.
- Hexadecimal colors
- RGB colors
- RGBA colors
- Predefined/cross-browser color names
- Predefined SVG colors
Specifies the width of the label connector in pixels.
Specifies a callback function that returns a text for labels.
The text to be displayed by a bar label.
When implementing a callback function for this option, you can use the value indicated by a bar. This value can be accessed using the fields of the object that is passed as the function's parameter. Alternatively, you can use the this object within the function. This object has the same structure as the object passed as a parameter.
To discover text customization in greater detail, refer to the Customize Text topic.
Specifies a format for bar labels.
Specifies the distance between the upper bar and bar labels in pixels.
Use the label | format | precision option instead.
Specifies a precision for the formatted value displayed by labels.
Specifies whether bar labels appear on a gauge or not.