Skip to content
Source
Sign inSign up
TanStack/react-charts

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

Openskeie(GitHub profile, opens in a new tab) opened this issue 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?

  1. skeie(GitHub profile, opens in a new tab) changed the title

  2. 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.

Sign in to join this conversation.