VictoryBar displays thin bar if only a single data point is present #1054
Labels
Note: Good first issue 🤩
Good issue for new contributors
Type: Bug 🐛
Oh no! A bug or unintentional behavior
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
As additional bars appear in the chart, Victory intelligently reduces the width of the bars to fit everything into the chart. However, if only one bar is present said bar is unexpectedly very thin and can't be modified via the barRatio property.
Ideally the bar should default to an appropriate width (just as two bars are thicker than three bars) and/or it should be manipulable via barRatio.
Reproduction
This can be reproduced by modifying one of the interactive demos found in the documentation:
Single thin bar (barRatio on VictoryBar has no effect)
Two bars are thicker and can be controlled via barRatio
The text was updated successfully, but these errors were encountered: