Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
digEmAll opened this issue Jun 26, 2020 · 2 comments
Open

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

digEmAll opened this issue Jun 26, 2020 · 2 comments

Comments

@digEmAll
Copy link
Contributor

digEmAll commented Jun 26, 2020

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).

  • C3 version: 0.7.18
  • D3 version: 5.9.2
  • Browser: Chrome 83.0.4103.116, Firefox 77.0.1
  • OS: Windows 10
@digEmAll
Copy link
Contributor Author

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

@digEmAll
Copy link
Contributor Author

digEmAll commented Jul 28, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant