ChartsOrg / Charts

Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.
Apache License 2.0
27.51k stars 5.99k forks source link

Enhancement Suggestion: Paged Scrolling/Pan Gesture Controls #3524

Open philfi opened 6 years ago

philfi commented 6 years ago

What did you do?

Attempted to introduce some paged scrolling by adding moveViewToX based on dX values in chartTranslated delegate method. However this leads to some wild page jumps due to no way exposed of modifying the pan gesture logic short of turning it off/on for x and/or y panning.

Would be nice to have a way of either informing the chart View of the desired paging logic or some way other way of hooking into the internals of the current panGestureRecognized method in order to have more control over it. My current use case is for a BarChart but I could see this being valuable for other chart types.

Actively working on this in my fork so if anyone has any suggestions or has done something similar would love to hear about it!

pmairoldi commented 6 years ago

We don't have plans to add this but will leave this issue open as an enhancement.