zoom

Fired as long as the user is zooming the chart using the mousewheel.

The event handler function context (available via the this keyword) will be set to the widget instance.

Event Data

e.axisRanges Object

A hastable containing the initial range (min and max values) of named axes. The axis name is used as a key.

e.delta Number

A number that indicates the zoom amount and direction. A negative value indicates "zoom in", while a positive "zoom out".

e.originalEvent Object

The original user event that triggered the drag action.

e.sender kendo.dataviz.ui.Chart

The widget instance which fired the event.

Example - subscribe to the "zoom" event during initialization

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [
    { data: [1, 2] }
  ],
  zoom: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log("zoom");
  }
});
</script>

Example - subscribe to the "zoom" event after initialization

<div id="chart"></div>
<script>
function chart_zoom(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log("zoom");
}
$("#chart").kendoChart({
  series: [
    { data: [1, 2] }
  ]
});
var chart = $("#chart").data("kendoChart");
chart.bind("zoom", chart_zoom);
</script>
In this article