警告内容:
[ECharts] DEPRECATED: nameGap property in radar component has been changed to axisNameGap
修改randar部分:
radar: {
shape: "circle",
radius: 100,
indicator: [
{
name: languageType == "cn" ? "问题" : "Problem",
max: 100,
},
...
],
axisName: { // 重点是这里的axisName
color: "black",
},
axisNameGap: 20, // 重点是这里的axisNameGap
},
报错:
echarts Cannot set properties of undefined (setting 'dataIndex')
需要在series中给每一个数据添加id标识,如:
id: Math.random(), // 重点
type: "graph",
layout: "none",
color: "#91cc75",