JavaScript/jQuery PieChart - Legend
Specifies PieChart legend properties.
import { Legend } from "devextreme/viz/pie_chart"
customizeHint
Specifies the text for a hint that appears when a user hovers the mouse pointer over a legend item.
Type:
Return Value:
The text for the hint to display.
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
Specifies a callback function that returns the text to be displayed by a legend item.
Type:
Return Value:
The text for the legend item to display.
Cannot be used in themes.
hoverMode
Specifies what chart elements to highlight when a corresponding item in the legend is hovered over.
Type:
Default Value: 'allArgumentPoints'
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