折线图x轴文字
Slope set in Echarts
// 配置项
option = {
xAxis: {
type: 'category',
axisLabel: {
rotate: 40 // 倾斜40度
},
data: ['2023-08', '2023-09', '2023-10', '2023-11']
},
yAxis: {
type: 'value',
axisLabel:{
}
},
series: [
{
data: ['7000', '20000', '5000', '1000'],
type: 'line',
itemStyle: {
normal: {
color: '#3888fa',
lineStyle: {
color: '#3888fa',
width: 2
},
areaStyle: {
color: '#f3f8ff'
}
}
},
}
]
};