Answers for "chart js rotating the x axis labels"

1

chart js rotating the x axis labels

var myChart = new Chart(ctx, {
    type: 'bar',
    data: chartData,
    options: {
        scales: {
            xAxes: [{
                ticks: {
                    autoSkip: false,
                    maxRotation: 90,
                    minRotation: 90
                }
            }]
        }
    }
});
Posted by: Guest on March-31-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language