Edit this page

drag

Fires as long as the user is dragging the sparkline using the mouse or swipe gestures.

Event Data

e.axisRanges Object

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

Note that the axis ranges are not updated automatically. You need to call set_options with either the suggested or custom min/max values for them to take effect.

Example

$("#sparkline").kendoSparkline({
    valueAxis: {
        name: "price"
    },
    drag: onDrag
    ...
}

function onDrag(e) {
    var minPrice = e.axisRanges.price.min;
}
e.originalEvent Object

The original user event that triggered the drag action.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy