xAxis: [
{
splitLine: { show: false },
type: "category",
data: xData,
splitArea: { show: false },
axisLabel: {
show: true,
interval: 0,
formatter: function (params) {
let contenLength = params.split("-");
var newParamsName = "";
newParamsName =
contenLength[0] +
"\n\n" +
contenLength[1] +
"\n\n" +
contenLength[2] +
"\n";
return newParamsName;
},
textStyle: {
color: "#6861a6", //文字颜色
},
},
},
],
echarts x轴数据显示多行
最新推荐文章于 2024-03-17 16:03:51 发布