label
Specifies common options for scale labels.
Scale labels represent textual values for major scale ticks. The label object exposes properties that allow you to specify custom text for scale labels and properties to change the text font.
customizeText
Specifies a callback function that returns the text to be displayed in scale labels.
The text to be displayed by a scale label.
When implementing a callback function for this property, use the scale value to be displayed in a label. 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.
For general information on data formatting, refer to the Data Formatting topic.
font
Specifies font options for the text displayed in the scale labels of the gauge.
format
Specifies a format for the text displayed in scale labels.
See Also
- format - provides a comprehensive overview of formatting capabilities. Note that only numeric subset of the predefined formats can be used.
- Data Formatting - shows how to apply formatting to various widget elements.
precision

Use the scale | label | format | precision option instead.
Specifies a precision for the formatted value displayed in the scale labels.
useRangeColors
Specifies whether or not scale labels should be colored similarly to their corresponding ranges in the range container.
To paint all scale labels in a single color, you can use the color option of the font object. Alternatively, you can paint scale labels similarly to ranges in the range container. For this purpose, assign true to the useRangeColors option.