ivnsch / SwiftCharts

Easy to use and highly customizable charts library for iOS
Apache License 2.0
2.53k stars 410 forks source link

Scrolling & selecting on same bar graph #316

Closed escully27 closed 6 years ago

escully27 commented 6 years ago

Hello!

I really looked for any help on this issue, it seems doable with this level of framework but I cannot find any answers so far.

I am trying to have a bar graph this is both scrollable (horizontally) and that has a selection tracker. I am able to get each of those working properly on their own but when I have them both on the same graph at the same time, things get buggy.

It seems to break and put the tracker layer beneath the graph after I scroll, so that it only triggers the tap when I select around a bar line (I want it to work when I tap a bar, of course)

Any help or advice would be great! Let me know if I need to clarify further!

Thanks

ivnsch commented 6 years ago

It's possible, I remember having implemented this use case (bars with zooming and panning + tracker). It may need some special settings/tweaks which I don't remember. If you put a (complete, self contained) example together it's easier for me to take a look.

rajan2211 commented 6 years ago

Is is possible to scroll the view with multiple bar those are out of the bound of the screen?