indicator中的text长的话,可以通过把文本换行显示
`
radar: [{
name: {
textStyle: {
color: "#72767A",
fontSize: this.fontSize(0.3),
padding: [0, 20],
},
lineHeight: this.fontSize(0.4),
formatter(params) {
return params.replace(/\//g, "\n");
},
},
axisLine: {
lineStyle: {
color: "#C3C3C3",
width: this.fontSize(0.03),
},
},
splitLine: {
lineStyle: {
width: this.fontSize(0.03),
},
},
splitArea: {
show: true,
areaStyle: {
color: [
"rgba(255,235,217, 0.1)",
"rgba(255,235,217, 0.2)",
"rgba(255,235,217, 0.4)",
"rgba(255,235,217, 0.6)",
"rgba(255,235,217, 0.8)",
"rgba(255,235,217, 1)",
].reverse(),
},
},
center: ["50%", "56%"],
radius: "65%",
indicator: [
{ text: "专注力/运算", max: 100 },
{ text: "记忆/延迟记忆", max: 100 },
{ text: "定向", max: 100 },
{ text: "理解能力/抽象概念", max: 100 },
{ text: "视觉空间/能力", max: 100 },
],
},
],`