//x轴的文字改为竖版显示
grid: {
left:'10%',
bottom:'40%' //y轴文字距离底部的距离
},
xAxis: {
type: "category",
data: this.bottomText,
axisLabel: {
interval: 0, //强制文字产生间隔
rotate:40, //倾斜多少度
//x轴的文字改为竖版显示
formatter: function (value) {
var str = value.split("");
return str.join("\n");
},
textStyle: {
//文字样式
color: "black",
fontSize: 16,
},
},
}
echarts让y轴文字竖着展示
最新推荐文章于 2023-07-24 18:06:29 发布