drilldownLevelChange
Fires when the drill-down level has changed.
The event handler function context (available via the this
keyword) will be set to the widget instance.
Event Data
e.level Number
The current drill-down level.
e.sender kendo.dataviz.ui.Chart
The widget instance which fired the event.
Example - subscribe to the "drilldownLevelChange" event during initialization
<div id="chart"></div>
<script>
$("#chart").kendoChart({
series: [
{ data: [1, 2] }
],
drilldownLevelChange: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log("drilldownLevelChange: " + e.level);
}
});
</script>
Example - subscribe to the "drilldown" event after initialization
<div id="chart"></div>
<script>
function onDrilldownLevelChange(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log("drilldownLevelChange: " + e.level);
}
$("#chart").kendoChart({
series: [
{ data: [1, 2] }
]
});
var chart = $("#chart").data("kendoChart");
chart.bind("drilldownLevelChange", onDrilldownLevelChange);
</script>