-
Notifications
You must be signed in to change notification settings - Fork 525
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
VictoryGraph with VictoryZoomContainer reverts to old values if updated after zoom #597
Comments
@johnhydroware thank you for the reproduction. |
we can see a very similar behavior on http://formidable.com/open-source/victory/guides/brush-and-zoom/. the zoomed seems to "forget" about actions from brush. |
just a quick update -- making progress on this. It looks like there are two distinct bugs:
|
fixed (1) bug, ZoomContainer doesn't respect outside |
another bug still lingers: ZoomContainer only calculates the @boygirl how should a container calculate its actually full domain (meaning what it can be zoomed out to)? I looked around |
fixed (2) bug, ZoomContainer only calculates the originalDomain once; therefore if new data is added the ZoomContainer wouldn't recognize it. PR FormidableLabs/victory-chart#476 |
https://jsfiddle.net/qk8w84of/2/
When started 1) zoom in the graph 2) Click "All" button. New dataset is shown. 3) Click in the graph. The old dataset is now shown.
The text was updated successfully, but these errors were encountered: