Chartjs-How to display bars in chartjs

0👍

The x-axis scale begins at 55. Since the value of Pediatric is 55 no bar is visible.

Set the following option to have the scale always begin at zero:

options: {
    scales: {
        xAxes: [{
            ticks: {
                beginAtZero: true
            }
        }]
    }
}

Leave a comment