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

Line gets clipped in line chart when value is 100% #73

Open
russelporosky opened this issue Oct 30, 2022 · 4 comments
Open

Line gets clipped in line chart when value is 100% #73

russelporosky opened this issue Oct 30, 2022 · 4 comments

Comments

@russelporosky
Copy link

I noticed this in the Chart Builder - if you select Line Chart, the peak is cut off for the "100" value.

image

Likewise, if two side-by-side bars are both at 100, the line disappears completely.

image

@ramiy
Copy link
Collaborator

ramiy commented Oct 31, 2022

Hi @metaloha, Can you share your code?

I think the docs should be updated to explain what happens in those cases (above 100% and below 0%).

@russelporosky
Copy link
Author

I don't have any of my own code, this is the example code in your Chart Builder. Just select Line Chart and see the problem.

Whether a value can be outside the bounds isn't related to this bug (unless the 100 value is just hidden by a clipping rectangle or overflow rule).

To expand, this doesn't happen at the 0 value, only the 100.

image

@lachlanjc
Copy link

lachlanjc commented Oct 31, 2022

I ran into this issue yesterday. I added some custom CSS to solve but uncheck it in devtools & you'll see clipping: https://lil-dashboard.vercel.app/weather

Source code: https://github.com/lachlanjc/lil-dashboard/blob/main/app/weather/page.js

@Kedarnath-Rothe
Copy link

Please assign this issue to me

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

4 participants