noteLeave
Fired when the cursor leaves a note.
The event handler function context (available via the this
keyword) will be set to the widget instance.
Event Data
e.category Object
The data point category. Available only for categorical charts (bar, line, area and similar).
e.dataItem Object
The data item of the point's note.
e.element Object
The DOM element of the plot area.
e.sender kendo.dataviz.ui.Chart
The widget instance which fired the event.
e.series Object
The series of the note.
e.value Object
The data point value.
e.visual Object
The note visual element.
Example - subscribe to the "noteLeave" event during initialization
<div id="chart"></div>
<script>
$("#chart").kendoChart({
series: [{
data: [{ value: 1, noteText: "a" }]
}],
noteLeave: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(e.text);
}
});
</script>
Example - subscribe to the "noteLeave" event after initialization
<div id="chart"></div>
<script>
function chart_noteLeave(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(e.text);
}
$("#chart").kendoChart({
series: [{
data: [{ value: 1, noteText: "a" }]
}]
});
var chart = $("#chart").data("kendoChart");
chart.bind("noteLeave", chart_noteLeave);
</script>