14.02.2021
In your options, try setting suggestedMin: -1 instead of beginAtZero: true , like so: options: { scales: { yAxes: [{ ticks: { suggestedMin: -1, } }], } }. This sample demonstrates the Range Bar chart type. For detailed implementation , please take a look at the HTML code tab.
6 Sep 2016 Bar Chart. Bar charts are (mostly) just line charts that look a bit different. By changing one line of our previous example, we can create a I am using Chart.js library for creating charts in my project. I want to set the y-axis minimum value to zero, but on doing so the second dataset 8 Oct 2018 Setting the type variable, we could change the line chart into a bar chart, or even a pie chart. All of the different types of charts can be seen here Angular2 directives for Chart.js npm install --save chart.js one directive for all chart types: baseChart , and there are 8 types of charts: line , bar , radar , pie