Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
skeie opened this issue Jun 30, 2023 · 2 comments
Open

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

skeie opened this issue Jun 30, 2023 · 2 comments

Comments

@skeie
Copy link

skeie commented Jun 30, 2023

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 skeie changed the title Vertical bar not showing in Bar Vertical bar not showing in Bar - 3.0.0-beta.55 Jun 30, 2023
@Meryovi
Copy link

Meryovi commented Jul 31, 2023

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.

@skeie
Copy link
Author

skeie commented Aug 1, 2023

Sweet, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants