1👍
Try adding scaleBeginAtZero: false
to your options
object.
scaleBeginAtZero: false
- Chartjs-Charts.js line chart: Show the most recent date on x-axis when setting ticks.maxTicksLimit
- Chartjs-Is it possible to add a click event in chart.js that directs you to a url?
0👍
Found it!
The issue was the plugin: chartjs-plugin-empty-overlay.js.
When disabling it the negative values are showing.
Should have read the doc, it was only tested for the line chart.
- Chartjs-Chartjs display bug when pushing data to graph
- Chartjs-Error trying to switch between different charts
Source:stackexchange.com