You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Panning to the right results in the X-axis resetting to start from quarter 1, despite that the rest of the chart scrolls correctly. Setting to zoomDomain to {{ y: [5000, 10000] }} doesn't seem to cause this.
The text was updated successfully, but these errors were encountered:
This only seems to happen when tickFormat is an array. Changing to tickFormat={x => Quarter ${x}} fixes the issue above.
savv
changed the title
VictoryZoomContainer breaks VictoryAxis (along the X dimension?)
VictoryZoomContainer breaks when VictoryAxis.tickFormat is an array
Jun 19, 2020
Bugs and Questions
Checklist
[✔️] This is not a
victory-native
specific issue. (Issues that only appear invictory-native
should be opened here)[✔️] I have read through the FAQ and Guides before asking a question
[✔️] I am using the latest version of Victory
[✔️] I've searched open issues to make sure I'm not opening a duplicate issue
The Problem
Adding a zoom container seems to break the X axis, such that it always starts from the first tick.
Reproduction
This sandbox:
https://codesandbox.io/s/basic-victory-example-wfkmm?file=/index.js
takes the example from the FAQ here and simply adds:
Panning to the right results in the X-axis resetting to start from quarter 1, despite that the rest of the chart scrolls correctly. Setting to zoomDomain to
{{ y: [5000, 10000] }}
doesn't seem to cause this.The text was updated successfully, but these errors were encountered: