Fires when an axis label is clicked.
Example
function onAxisLabelClick(e) {
alert("Clicked " + e.axis.type + " axis label with value: " + e.value);
}
Event data
-
axis
: Object
- The axis that the label belongs to.
-
value
: Object
- The label value or category name.
-
text
: Object
- The label text.
-
index
: Object
- The label sequential index or category index.
-
dataItem
: Object
- The original data item used to generate the label.
Applicable only for data bound category axis.
-
element
: Object
- The DOM element of the label.
Fires when the chart has received data from the data source
and is about to render it.
Example
function onDataBound(e) {
// Series data is now available
}
Fires when chart series are clicked.
Example
function onSeriesClick(e) {
alert("Clicked value: " + e.value);
}
Event data
-
value
: Object
- The data point value.
-
category
: Object
- The data point category
-
series
: Object
- The clicked series.
-
series.type
: String
- The series type
-
series.name
: String
- The series name
-
series.data
: Array
- The series data points
-
dataItem
: Object
- The original data item (when binding to dataSource).
-
element
: Object
- The DOM element of the data point.
Fires when chart series are hovered.
Example
function onSeriesHover(e) {
alert("Hovered value: " + e.value);
}
Event data
-
value
: Object
- The data point value.
-
category
: Object
- The data point category
-
series
: Object
- The clicked series.
-
series.type
: String
- The series type
-
series.name
: String
- The series name
-
series.data
: Array
- The series data points
-
dataItem
: Object
- The original data item (when binding to dataSource).
-
element
: Object
- The DOM element of the data point.