-
Notifications
You must be signed in to change notification settings - Fork 524
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
Zooming in too far breaks axis #858
Comments
Same problem, and I am also using createComponent to create a VictoryVoronoiZoomContainer. Any updates? |
Nope. I've been away from the project for awhile but will update if I go back and find anything. |
It occurs when the base X VictoryAxis scrolls out of view. Example: A graph with a y domain of [-50, 100]. X axis crosses Y at y=0 initially. When zooming in an area where y > 0, the chart will crash once the X axis has scrolled out of view. Haven't been able to debug yet. |
Update: figured out a fix; opening a PR. Need additional null checking in getComponentProps() within addEvents class. Line 155: |
The same error appears when zooming VictoryArea in React Native. I merged the PR from cjtafoya, but this did not solve it. |
I think the issue comes from the scale function in zoom-helpers.js. There is a line |
This issue is stale because it has been open for 90 days with no activity. If there is no activity in the next 7 days, the issue will be closed. |
This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem. |
The following errors get printed out. I am using
createComponent
to make a zoomable voronoi chart. I am trying to recreate the bug in JSFiddle but can't seem to import things correctly: https://jsfiddle.net/yjjr4wb9/13/The text was updated successfully, but these errors were encountered: