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

Scroll both charts simultaneously. #3

Open
BurhanMughal opened this issue May 14, 2015 · 2 comments
Open

Scroll both charts simultaneously. #3

BurhanMughal opened this issue May 14, 2015 · 2 comments

Comments

@BurhanMughal
Copy link

Hi,
Nice library, easy to use and integrate.
I have a query how can we scroll the second graph accordingly if user scrolls the first one and vice versa, like tapping on right navigation bar button item. ?

Waiting for your early and positive response.
Thanks.

@eternityz
Copy link
Owner

Maybe you can take a look at https://gist.github.com/eternityz/b452ce9dd1f05ab8dd26, that might be what you need. (Replace RWDemoViewController.m with the gist, then run the demo again).

What I did in this gist is to keep both chart views having the same content offset in scrollViewDidScroll:. That trick only works if both chart views have the same appearance setup (bar width, bar padding, space padding, axis setup, etc.).

@ShobhitChourasia
Copy link

Can I add a dedicated x-axis at the bottom of the bars?

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