Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

雷达图中的数据数组中第一项是“-”时显示错误 #8962

Closed
katherinebai opened this issue Aug 28, 2018 · 0 comments · Fixed by OpenTMI/opentmi-default-gui#32 or DeviaVir/zenbot#2011 · May be fixed by dyna-dot/iClient-JavaScript-s#1
Assignees
Labels

Comments

@katherinebai
Copy link

katherinebai commented Aug 28, 2018

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)] -->
![image](https://user-images.githubusercontent.com/36399340/44698089-1f8bf780-aab1-11e8-849c-ee7f654ae7a9.png)
@Ovilia Ovilia added the bug label Aug 28, 2018
Ovilia added a commit that referenced this issue Oct 15, 2018
@Ovilia Ovilia closed this as completed in b604649 Oct 15, 2018
Ovilia added a commit that referenced this issue Oct 15, 2018
fix: #8962 闭合多边形时,如果第一个值为NaN,导致最后值也为NaN,渲染不出连接线。
100pah added a commit that referenced this issue Oct 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment