JavaScript/jQuery Funnel - Legend
Configures the legend.
import { Legend } from "devextreme/viz/funnel"
customizeHint
Specifies the hint that appears when a user hovers the mouse pointer over a legend item.
Type:
Function parameters:
itemInfo:
Information on the funnel item and its corresponding legend item.
Object structure:
Name | Type | Description |
---|---|---|
item |
The Item object. |
|
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:
itemInfo:
Information on the funnel item and its corresponding legend item.
Object structure:
Name | Type | Description |
---|---|---|
item |
The Item object. |
|
text |
The legend item's original text. |
Return Value:
The text for the legend item to display.
Cannot be used in themes.
markerTemplate
Specifies an SVG element that serves as a custom legend item marker.
Type:
| undefined
Function parameters:
legendItem:
Information about a legend item.
element:
A marker's container.
One of the following:
- Template name
- SVG markup as a string
- SVGElement
- jQuery element that contains an SVGElement
Default Value: undefined
Feedback