Edit this page


Fires when an legend item is clicked, before the selected series visibility is toggled. Can be cancelled.

Example - prevent toggling the series visibility on legend item click

function onLegendItemClick(e) {

Event Data

e.pointIndex Number

The point index.

e.preventDefault Function

If invoked the default action (toggle series visibility) will be prevented.

e.sender kendo.dataviz.ui.Chart

The widget instance which fired the event.

e.series Object

The series options.

e.seriesIndex Number

The series index.

e.text String

The name of the series.

e.element Object

The DOM element of the plot area.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article