Chartjs-Do not rotate scale title at xAxis

0👍

Add this code to your options.scales:

xAxes: [{
    ticks: {
        maxRotation: 0 // angle in degrees
    }
}]

Example of options:

options: {
    responsive: false,
    scales: {
        yAxes: [{
            ticks: {
                beginAtZero:true
            }
        }],
        xAxes: [{
            ticks: {
                maxRotation: 0 // angle in degrees
            }
        }]
    }
}

Leave a comment