dragStart
Fires when the user has used the mouse or a swipe gesture to drag the sparkline.
The drag 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]
}],
dragStart: function(e) {
console.log("Drag started");
// Optionally prevent drag: 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 drag action.
In this article