echarts
echarts copied to clipboard
雷达图中的数据数组中第一项是“-”时显示错误
One-line summary [问题简述]
雷达图中的数据是 ["-", 5, 8, 1, 4],其中“-”处于第一位和中间位置时表现不一致,当“-”处于数组第一位时,tooltip消失后连线消失了;当“-”处于其他项时表现正确。
Version & Environment [版本及环境]
- v4.1.0 [ECharts 版本]:
- Chrome [浏览器类型和版本]:
- Win8.1 [操作系统类型和版本]:
Expected behaviour [期望结果]
当雷达图中系列的数据是'-'时,相邻的两个点可以连线,而且当‘-’处于数组中的第一位时,将鼠标放置到某个点时tooltip消失后连线不消失。
ECharts option [ECharts配置项]
option = {
"animation": false,
"backgroundColor": "rgba(255,255,255,1)",
"tooltip": {
"trigger": "item"
},
"title": null,
"legend": {
"show": true,
"left": "right",
"top": "center",
"orient": "vertical",
"align": "left",
"backgroundColor": "rgba(255,255,255,0)",
"borderColor": "rgba(255,255,255,0)",
"borderWidth": 1,
"textStyle": {
"color": "rgba(0,0,0,1)",
"fontFamily": "'MS PGothic'",
"fontSize": 14.67,
"fontStyle": "Normal",
"fontWeight": 400
},
"data": [{
"name": "整数",
"icon": "roundRect"
}],
"itemWidth": 14,
"itemGap": 12
},
"series": [{
"type": "radar",
"name": "整数",
"data": [{
"value": ["-", 5, 8, 1, 4]
}],
"label": {
"show": false,
"position": "outside",
"color": "rgba(0,0,0,1)",
"fontFamily": "'MS PGothic'",
"fontSize": 14.67,
"fontStyle": "Normal",
"fontWeight": 400
},
"itemStyle": {
"color": "rgba(79,129,189,1)"
},
"lineStyle": {
"color": "rgba(79,129,189,1)",
"width": 1,
"type": "solid"
},
"symbol": "diamond",
"symbolSize": 7
}],
"radar": {
"splitNumber": 9,
"indicator": [{
"name": "AronChen",
"max": 9,
"min": 0
}, {
"name": "Administrator",
"max": 9,
"min": 0
}, {
"name": "AngelaLi",
"max": 9,
"min": 0
}, {
"name": "AndrewLiang",
"max": 9,
"min": 0
}, {
"name": "AmandaDuan",
"max": 9,
"min": 0
}],
"name": {
"show": true,
"textStyle": {
"color": "rgba(0,0,0,1)",
"fontFamily": "'MS PGothic'",
"fontSize": 14.67,
"fontStyle": "Normal",
"fontWeight": 400
}
},
"axisLine": {
"show": true,
"lineStyle": {
"color": "rgba(0,0,0,1)",
"type": "solid",
"width": 1
}
},
"axisTick": {
"show": false,
"inside": false,
"length": 7,
"lineStyle": {
"color": "rgba(134,134,134,1)",
"width": 0.5
}
},
"splitLine": {
"show": true,
"lineStyle": {
"color": "rgba(134,134,134,1)",
"width": 0.5,
"type": "solid"
}
},
"splitArea": {
"show": true,
"areaStyle": {
"color": "rgba(255,255,255,1)"
}
},
"startAngle": 162,
"center": [204.5, 145],
"radius": 91.125
}
}
### Other comments [其他信息]
<!-- For example: Screenshot or Online demo -->
<!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
