axisLabelClick

Fires when an axis label is clicked.

Example

function onAxisLabelClick(e) {
    alert("Clicked " + e.axis.type + " axis label with value: " + e.value);
}

Event Data

e.axis Object

The axis that the label belongs to.

e.value Object

The label value or category name.

e.text Object

The label text.

e.index Object

The label sequential index or category index.

e.dataItem Object

The original data item used to generate the label. Applicable only for data bound category axis.

e.element Object

The DOM element of the label.

In this article