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, precision, 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 (not supported in Internet Explorer 8)
- Predefined/cross-browser color names
- Predefined SVG colors (not supported in Internet Explorer 8)
Specifies the width of the label connector in pixels.
Specifies a callback function that returns a text for labels.
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 Provide a Custom Text topic.
Specifies font options for bar labels.
Specifies a format for bar labels.
A bar label displays the value of the bar. You can apply formatting to this label using one of the numeric formats.
For details on formatting, refer to the Data Formatting topic.
Specifies the distance between the upper bar and bar labels in pixels.
Specifies a precision for the formatted value displayed by labels.
This option's value must be an integer indicating the number of digits to show in the value displayed by a label. The value of this option is used when a label displays a value with an applied format. To learn how to set a format for a label, refer to the format option description.
For general information on data formatting, refer to the Data Formatting topic.
Specifies whether bar labels appear on a gauge or not.