Chartjs-Formatting axis labels using ChartsJS

1👍

You forgot to place the labelstring in the scaleLabel property again for your combined config, if you put it like this it should work:

options: {
    title: {
        display: true,
        text: 'Number of faults'
    },
    responsive: false,
    scales: {
        yAxes: [{
            scaleLabel: {
                display: true,
                labelString: 'probability'
            },
            ticks: {
                beginAtZero: true,
                min: 0
            }
        }]
    },
}

Leave a comment