zoomStart
Fires when the user has used the mousewheel to zoom the chart.
The zoom operation can be aborted by calling e.preventDefault().
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.originalEvent Object
The original user event that triggered the zoom action.
e.sender kendo.dataviz.ui.StockChart
The widget instance which fired the event.
Example
<div id="stockChart"></div>
<script>
$("#stockChart").kendoStockChart({
dateField: "date",
series: [{
field: "value",
data: [
{ date: new Date("2022/1/1"), value: 10 },
{ date: new Date("2022/1/2"), value: 15 },
{ date: new Date("2022/1/3"), value: 20 }
]
}],
zoomStart: function(e) {
console.log("Zoom started - axis ranges:", e.axisRanges);
}
});
</script>
In this article