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
This is not a victory-native specific issue. (Issues that only appear in victory-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
I want to display the bars in my chart in a specific order, so I added a sort key to the data source and passed the sortKey="sort" param to my VictoryBar component. This works as expected in the default vertical bar graph.
When I add the horizontal={true} param to the VictoryBar component, the sorting breaks. The labels on the independent axis are re-ordered correctly, but the bars stay in the same order no matter what.
Note: Sizing/spacing doesn't affect the issue, it's just so the graphs are easier to see. The only difference between the vertical graphs and horizontal graphs is the horizontal={true} parameter.
The text was updated successfully, but these errors were encountered:
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
I want to display the bars in my chart in a specific order, so I added a
sort
key to the data source and passed thesortKey="sort"
param to myVictoryBar
component. This works as expected in the default vertical bar graph.When I add the
horizontal={true}
param to theVictoryBar
component, the sorting breaks. The labels on the independent axis are re-ordered correctly, but the bars stay in the same order no matter what.Reproduction
https://codesandbox.io/s/6y3zno0m7k
Note: Sizing/spacing doesn't affect the issue, it's just so the graphs are easier to see. The only difference between the vertical graphs and horizontal graphs is the
horizontal={true}
parameter.The text was updated successfully, but these errors were encountered: