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

Horizontal zoom in line chart #837

Closed
whatsthebeef opened this issue Mar 12, 2016 · 6 comments
Closed

Horizontal zoom in line chart #837

whatsthebeef opened this issue Mar 12, 2016 · 6 comments

Comments

@whatsthebeef
Copy link

I have implemented a line chart on OSX with panning and vertical zoom working very nicely however the horizontal zoom doesn't work at all? I have a port of the app on the iPad where it is working. Is this expected behavior? If so how come? If not can you think of something I might need to change for OSX or something I might have left out?

@liuxuan30
Copy link
Member

the horizontal zoom should works fine. could you take a look at ChartsDemo?

@whatsthebeef
Copy link
Author

Yep, it's working in the demo so it must be something I'm missing. I will close the issue and add the reason why it wasn't working for me when I find it.

@whatsthebeef
Copy link
Author

Actually horizontal zoom isn't working on the demo, only vertical zoom.

@danielgindi
Copy link
Collaborator

It depends on which zoom axes you have enabled.
The gesture recognizers on OSX are not mature yet, and do not allow detection of direction. So we can't deduce which axis should be scaled like we do on the iPad.
You can disable zoom on the Y, or allow pinch zooming.

@whatsthebeef
Copy link
Author

I've enabled pinch zoom but results are the same. How do I disable pinch on the Y axis only and will it not just disable zooming completely?

If it's a case of developing the gesture recognizers further I will take a look?

@danielgindi
Copy link
Collaborator

You have 3 properties to play with: pinchZoomEnabled, scaleXEnabled, scaleYEnabled.

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

3 participants