Stephen H. Anderson
Stephen H. Anderson

Reputation: 1068

Highstock: xy zooming with panning

How can I get x y zooming and also panning?

Ideally it would be possible to select a rectangle with the mouse (xy zooming) which I already have and also to pan after zoom has been made, for that maybe something like pressing a key while dragging would work for zooming.

But I don't have idea how to implement this. Haven't found a solution for this.

Upvotes: 0

Views: 707

Answers (1)

Sebastian Bochan
Sebastian Bochan

Reputation: 37578

In the highcharts you can define a panning and panKey to run that behaviour on desktop. See option http://api.highcharts.com/highcharts#chart.panKey

chart: {
    panKey: 'shift'
}

Upvotes: 1

Related Questions