Echart histogram, the X-axis is displayed diagonally

option = { color: ['#3398DB'], tooltip: { trigger: 'axis', axisPointer: { // Axis indicator, valid axis trigger type: 'shadow' // Default is straight line, optional: 'line' | 'shadow' } }, grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true }, xAxis: [ { type: 'category', data : ['Mon1111111111', 'Tu111111111e', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], axisLabel:{ //Display angle rotate:60 }, axisTick: { alignWithLabel: true } } ], yAxis: [ { type: 'value' } ],






























series: [
{ name: 'Direct access', type: 'bar',

        barWidth: '60%',
        data: [10, 52, 200, 334, 390, 330, 220]
    }
]

};
Insert image description here

Guess you like

Origin blog.csdn.net/qq_45424679/article/details/128107833
Recommended