Bars overlapping where expected number of columns not present. #3030
Labels
Issue: Accepted
The submitted issue has been confirmed by the Victory core team
Type: Bug 🐛
Oh no! A bug or unintentional behavior
Is there an existing issue for this?
Code of Conduct
Victory version
36.6.8
Code Sandbox link
https://codesandbox.io/p/sandbox/victory-minimum-example-overlapping-bars-forked-3vfxpp?file=%2Fsrc%2FApp.js%3A95%2C1-96%2C1
Bug report
Given a domain when the set of data provided to VictoryBar contains missing values the chart bars overlap.
In the Code Sandbox (link provided above), you'll be able to toggle between 3 scenarios and see the associated charts:
Discontinuous data - bars overlap
Missing data subbed with zero - bars don't overlap
Full data - bars don't overlap
Steps to reproduce
Head to the code sandbox link I provided and toggle between the different scenarios (discontinuous data - bars overlap, missing data subbed with zero - bars don't overlap, full data - bars don't overlap) and see how the bars behave.
Expected behavior
In the context of a discontinuous set of data provided to VictoryBar the bars don't overlap in the graph.
We expect Victory to calculate and adjust the width of the bars given the dataset and the domain.
Actual behavior
In the context of a discontinuous set of data provided to VictoryBar the bars overlap in the graph.
Environment
The text was updated successfully, but these errors were encountered: