1

Recently started using the Nivo charting library. Having issues with ResponsiveBar in that it draws nicely after a recompile but if I F5 reload the bars collapse to near zero width. The surrounding chart isn't resized - only the width of the contained svg objects for each bar item.

To compensate Im having to use barComponent= and set a minimum width. This is less than ideal as I lose the nice tooltips, etc.

If I trigger a resize event the bars reappear at the appropriate width.

Im new to this library so Im not clear where to look for what Im doing wrong.

Note that this doesn't happen with ResponsiveLine.

ethrbunny
  • 10,379
  • 9
  • 69
  • 131
  • Having the same issue, did you find a solution for this? – nsL Jul 08 '22 at 20:05
  • There are some custom draw hooks you can use to circumvent this... But I ended up ditching nivo as it was fighting back too hard. – ethrbunny Jul 09 '22 at 20:10

0 Answers0