-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
How to sync the scrolling of 2 charts #3063
Comments
you can try refreshWithNewMatrix: chart: invalidate: |
@KevinZK Thanks for helping with me trying to solve my problem. |
@Lavallette change this function "func chartTranslated(chartView: ChartViewBase, dX: CGFloat, dY: CGFloat)" to "func chartTranslated(_ chartView: ChartViewBase, dX: CGFloat, dY: CGFloat)" ,add a " _ " symbol |
"func chartTranslated(chartView: ChartViewBase, dX: CGFloat, dY: CGFloat)" to |
@thierryH91200 I made a mistake :), have rewrited the reply |
Thanks @KevinZK. I did the change but the function is never called when scrolling. Can it be that it is only called on iOS and not MacOS? |
it's work ! |
@KevinZK You are right of course. Not sure what I did the first time. Thank you very very much for your help, you are brightening my day. |
Hello,
I’m new to programming and decided to try to use this wonderful library.
My question has been asked several times (as well on the Java community) but I have never been able to find an answer/solution or better an example, at least one I understand.
The question is, can 2 charts be synchronized so that "manual" scrolling/paning done on one chart is replicated on the second one?
I thought the solution was to use ChartViewDelegate and to work with chartTranslated but the method is not even called in my sample.
I create a sample application https://github.com/Lavallette/ChartSample if you want to have a look with
I’m certainly missing something but would love to get some help and advices.
Thank you.
PS: this is an MacOS application with xCode 9 in Swift 4
The text was updated successfully, but these errors were encountered: