JavaScript/jQuery BarGauge - label
Specifies the properties of the labels that accompany gauge bars.
Type:
Each gauge bar is accompanied by a label that usually displays the value of the bar. Use the properties 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 property or assign false straight to the label property.
See Also
connectorColor
Specifies a color for the label connector text.
Type:
Default Value: undefined
This property supports the following colors:
- Hexadecimal colors
- RGB colors
- RGBA colors
- Predefined/cross-browser color names
- Predefined SVG colors
- Paint server address
customizeText
Specifies a callback function that returns a text for labels.
Type:
Return Value:
The text for the label to display.
Cannot be used in themes.
NOTE
As an alternative to the function’s parameter you can use the
this
keyword.See Also
format
Formats a value before it is displayed in a label. Accepts only numeric formats.
Type:
Default Value: undefined
indent
Specifies the distance between the upper bar and bar labels in pixels.
Type:
Default Value: 20
Feedback