Chart.js bar chart bars and labels do not align

👍:0

Your Bar chart has certain settings by default, which you can override when you’re configuring your instance. Change barValueSpacing in order to do that.

Bar.options = { //How it looks in the ChartJS library...
    // ...
barValueSpacing : 5, //Number - Spacing between data sets within X values
    // ...
}

http://www.chartjs.org/docs/

Check out the documentation for more settings.

Leave a comment