JavaScript/jQuery BarGauge - Legend
Configures the legend.
import { Legend } from "devextreme/viz/bar_gauge"
customizeHint
Specifies the hint that appears when a user hovers the mouse pointer over a legend item.
Type:
Function parameters:
arg:
Information on the bar and its corresponding legend item.
Object structure:
| Name | Type | Description |
|---|---|---|
| item |
Information on the bar. |
|
| text |
The legend item's text. |
Return Value:
The text to be displayed in the hint.
customizeItems
Allows you to change the order, text, and visibility of legend items.
Type:
Function parameters:
items:
Legend items before customizations.
Return Value:
Legend items after customizations.
customizeText
Customizes the text displayed by legend items.
Type:
Function parameters:
arg:
Information on the bar and its corresponding legend item.
Object structure:
| Name | Type | Description |
|---|---|---|
| item |
Information on the bar. |
|
| text |
The legend item's text. |
Return Value:
The text to be displayed in the hint.
Cannot be used in themes.
itemTextFormat
Formats the item text before it is displayed. Accepts only numeric formats. When unspecified, it inherits the label's format.
Type:
Default Value: undefined