zoomStart

Fires when the user has used the mousewheel to zoom the chart.

The zoom operation can be aborted by calling e.preventDefault().

Example

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    type: "line",
    series: [{
        data: [10, 15, 8, 12, 18, 5, 22, 14]
    }],
    zoomStart: function(e) {
        console.log("Zoom started");
        // Optionally prevent zoom: e.preventDefault();
    }
});
</script>

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.

In this article
zoomStart
Not finding the help you need?
Contact Support