c3js / c3

:bar_chart: A D3-based reusable chart library
http://c3js.org
MIT License
9.34k stars 1.39k forks source link

Cannot pan on y-axis when zoomed and rotated=true #2799

Open digEmAll opened 4 years ago

digEmAll commented 4 years ago

Hi All, in rotated=true charts, when you zoom (using type zoom.type=scroll, because zoom.type=drag doesn't work ) you cannot pan on the y-axis to see the others values.

Check the following jsfiddle: https://jsfiddle.net/yeo0rkwx/ (zoom using the scroll-wheel then drag vertically: the chart won't move, while doing the same when rotated=false works for the x-axis).

digEmAll commented 4 years ago

Correction: it seems to works if you drag horizontally, i.e. if you drag the mouse horizontally the zoomed chart pans vertically...

digEmAll commented 4 years ago

I created a PR which should fix the issue (my first one, so please be patient 😅)