-
-
Notifications
You must be signed in to change notification settings - Fork 9k
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
zoomAndCenterAnimated not centering on x value #4334
Comments
I got same issue, any work around? |
It happens to me as well, on the latest release of the library. Always zooms in at the first data point on the X axis. |
I did figure it out but never posted a solution. In AnimatedZoomJob.getInstance(...) the zoomCenter variables are never set. The parameters are passed but nothing is done to it. If @PhilJay wants I can fork and push a request, but here's the fixed method so long:
|
Thanks for posting the fix here! He hasn't merged any pull requests for the past 2 months, but I'm sure he will do so when he finds the time. Plus all of us will appreciate if you do! |
Made the change suggested by @a-bresler
I've encountering the same issue, is the fix closed with merge? |
…n coordinates. In static method AnimatedZoomJob:getInstance added the assignment of the parameters zoomCenterX, zoomCenterY, zoomOriginX, zoomOriginY.
Five years later and still the same issue. I created a PR with the fix @a-bresler suggested. Hopefully it gets merged. |
…n coordinates. In static method AnimatedZoomJob:getInstance added the assignment of the parameters zoomCenterX, zoomCenterY, zoomOriginX, zoomOriginY.
…nterAnimated Fixes zoomAndCenterAnimated did not center on coordinates
While you wait for a merge (the last was 3 years ago), I merged it here already |
I'm trying to use the method
zoomAndCenterAnimated
on a line graph, but the result I get, no matter the x-value entered, is the graph zooming and centering on the very first data point.I've tried implementing on the sample project with a simple y = x straight line graph and no matter which x;y value I choose to center on it still zooms in and centers on the first data point.
The text was updated successfully, but these errors were encountered: