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

Constant secondary axis doesn't show bars #332

Open
Grmiade opened this issue Dec 7, 2022 · 1 comment
Open

Constant secondary axis doesn't show bars #332

Grmiade opened this issue Dec 7, 2022 · 1 comment

Comments

@Grmiade
Copy link

Grmiade commented Dec 7, 2022

Here an example: https://codesandbox.io/s/goofy-haslett-00zw0n?file=/src/useDemoConfig.tsx
When the secondary axis only have one value to represent, 5 in my example, no bars are shown.

@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, and by having a single value the bar is so small you can't see it (min = max = your value).

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