Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

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

Open NiTRoeSE opened this issue 2 years ago • 0 comments

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

NiTRoeSE avatar Nov 24 '23 14:11 NiTRoeSE