nie-ine/inseri

Grouped bar chart bug

Padlina opened this issue · 1 comments

If you select 1500 as chart width, and then deselect one of the category, all the bars disappears and then the whole selection of categories doesn't work as expected.
This seems to happen only when the bars are very small.
grouped-bar-chart1
grouped-bar-chart2

Fixed with commit 2bc53b2 to branch 2020-10.
I omitted the re-calculation of the total width of each x-axis item (each verse in this case) when deselecting one of the groups.
When the single bars were very small, this always led to a new total width of zero and all bars were gone.