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

Bottom line under 0 (zero) is drawn in line chart but shouldn't if tick beginAtZero is set to 0 #11593

Open
NiTRoeSE opened this issue Nov 24, 2023 · 0 comments

Comments

@NiTRoeSE
Copy link

NiTRoeSE commented Nov 24, 2023

Expected behavior

If a dataset lowest value is 0, the line under 0 should not be drawn with settings:

scales: {
    y:{
          ticks:{ beginAtZer: true, min: 0}
       }
}

Current behavior

Line below 0 is shown but lowest value in data is 0.

Bildschirmfoto 2023-11-24 um 15 11 48

Maybe i understand something wrong and its not a bug, but how can i get rid of this line ?
Sorry if so , any help would be great if its not a bug.

Reproducible sample

master

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

v4.4.0

Browser name and version

Safari & Firefox

Link to your project

No response

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

No branches or pull requests

1 participant