API / Configuration / ChartLegendEvents

Defined in: src/core/types/chart/legend.ts:12

Properties

Property Type Description
itemClick? (data: ChartLegendItemClickData, event: MouseEvent) => void Called when a discrete legend item is clicked, before the configured click action runs. Enter and Space on a focused item dispatch a click MouseEvent with the keyboard modifiers. This callback is informational: its return value and event.defaultPrevented do not change series visibility.