📜  图表 js 旋转 x 轴标签 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:45.939000             🧑  作者: Mango

代码示例1
var myChart = new Chart(ctx, {
    type: 'bar',
    data: chartData,
    options: {
        scales: {
            xAxes: [{
                ticks: {
                    autoSkip: false,
                    maxRotation: 90,
                    minRotation: 90
                }
            }]
        }
    }
});