View Code? Open in Web Editor
NEW
Using this plugin will enable Y-Axis panning.
Home Page: https://www.highcharts.com/products/plugin-registry/single/27/Y-Axis%20Panning
License: GNU General Public License v2.0
highstock-yaxis-panning's People
Contributors
Watchers
highstock-yaxis-panning's Issues
Bug / Issue
Steps to reproduce
- go to the jsfiddle
- zoom in in the scatter and pan with shift and mouse.
- go to the chart with lines. and zoom in and pan with shift an mouse.
Misbehavior
now the lines are not panable. i can zoom but not pan.
Expected behavior
i want to pan in both charts.
Is there anything that i have to do that it would work?
Add
body.style.cursor = 'default';
inside the addEvent(doc, 'mouseup') handler function
in the variable declaration, change:
panning = options.chart.panning || true;
to:
panning = options.chart.panning !== undefined ? options.chart.panning : true,
Issue: the || operator is allowing a panning: false setting to become true.
Note also that this overrides Highcharts' default behavior that panning is disabled. Maybe should include this in the docs.