fl_chart icon indicating copy to clipboard operation
fl_chart copied to clipboard

BarChart throws error when the y value of all bars is 0

Open VanshikaBagrodia opened this issue 2 years ago • 1 comments

Describe the bug Getting the below error when all the bars have 0 as there y-axis value in a BarChart- !offset.dx.isNaN && !offset.dy.isNaN "Offset argument contained a NaN value." error.log

To Reproduce To reproduce, pass all y values as 0 (empty graph)

Versions

  • which version of the Flutter are you using? - 3.0.2
  • which version of the FlChart are you using? - 0.51.0

VanshikaBagrodia avatar Jul 07 '22 10:07 VanshikaBagrodia

Please check our latest version (0.55.0 at the moment). I checked and I couldn't reproduces.

imaNNeo avatar Jul 31 '22 20:07 imaNNeo