LegendClickEvent

Provides event arguments triggered when a legend item is clicked in the chart.

Props

The following table outlines the props for the LegendClickEvent:

NameTypeDefaultDescription
cancel
boolean
-

Indicates whether the event should be canceled. Set to true to prevent the default action.

seriesName
string
-

The name of the chart series associated with the clicked legend item.

shape
-

The shape of the visual marker used in the clicked legend item.

text
string
-

The label text displayed in the clicked legend item.