chartjs / chartjs/Chart.js

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

Open
#11,593 0 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### 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_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.