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

Vertical bar not showing in Bar - 3.0.0-beta.55

Open skeie opened this issue 2 years ago • 2 comments

Hey man,

I really love TanStack - great work!

I have been playing around with the Bar version of the Chart and I saw a strange behaviour, the bar with the lowest value was not shown

image

You can see the code here: https://codesandbox.io/s/broken-dust-zm42yy?file=/src/components/Bar.tsx

Not sure if this is something I've done wrong or if its a bug?

skeie avatar Jun 30 '23 11:06 skeie

The way I was able to work around this issue was by explicitly setting a min and max value on the secondary axis. If you don't, the library seems to be trying to figure out the min and max values on its own. This means you might not actually see the lowest value as the chart would start at that point.

Meryovi avatar Jul 31 '23 15:07 Meryovi

Sweet, thanks!

skeie avatar Aug 01 '23 06:08 skeie