Chartjs-Ng2-charts does not work When data is between 2 and 5

0๐Ÿ‘

โœ…

set stepSize: 1 for y-axis ticks :

...
public barChartOptions: any = {
   scaleShowVerticalLines: false,
   responsive: true,
   scales: {
      yAxes: [{
         ticks: {
            beginAtZero: true,
            stepSize: 1 //<- set this
         }
      }]
   },
};
...

0๐Ÿ‘

it does not have good view for large data amount.

Leave a comment