RWBarChartView icon indicating copy to clipboard operation
RWBarChartView copied to clipboard

Scroll both charts simultaneously.

Open BurhanMughal opened this issue 9 years ago • 2 comments

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.

BurhanMughal avatar May 14 '15 06:05 BurhanMughal

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

eternityz avatar May 15 '15 09:05 eternityz

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

ShobhitChourasia avatar Jun 26 '18 14:06 ShobhitChourasia