react-timeseries-charts icon indicating copy to clipboard operation
react-timeseries-charts copied to clipboard

Zero data and minBarHeight=0 breaks multiple columns in BarChart

Open damonmaria opened this issue 6 years ago • 1 comments

🐛Bug report

Describe the bug When multiple columns are supplied for a BarChart, and minBarHeight={0} is used, then the first column that has 0 data will stop later columns rendering.

This happens because this line of code should continue, not break.

To Reproduce #364 has a good example that produces this.

Expected behavior Even when one bar is zero height, the other bars should render still.

Desktop (please complete the following information):

  • OS: MacOS 10.14.6
  • Browser Chrome
  • Version 75.0.3770.142 64-bit

damonmaria avatar Aug 02 '19 03:08 damonmaria

I have the same issue and the pull request will fix it

DireLines avatar Jan 15 '22 06:01 DireLines