All Components
Components

LegendItemClickEvent

Arguments for the legendItemClick event.

pointIndex number

The point index in the series.

Applicable only to the Pie, Donut, and Funnel series.

series any

An object containing the series configuration.

The interface of this property is unstable and might change for the 1.0 release.

seriesIndex number

The index of the series in the parent Chart.

text string

The text of the legend item.

Methods

isDefaultPrevented

Returns true if the event was prevented by any of its subscribers.

Returns

boolean true if the default action has been prevented, false otherwise

preventDefault

If called, the series visibility is not toggled as a result of clicking the legend item.

In this article