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

设置minAngle在特定情况下导致的显示问题 #5617

Closed
CYvonne opened this issue Apr 28, 2017 · 0 comments
Closed

设置minAngle在特定情况下导致的显示问题 #5617

CYvonne opened this issue Apr 28, 2017 · 0 comments
Labels

Comments

@CYvonne
Copy link

CYvonne commented Apr 28, 2017

One-line summary [问题简述]

当我给饼图设置了minAngle=20,并且data中第一个数据的value设为<17(比如3),第二个数据的value设为'-'的时候,结果显示会有问题。

去掉minAngle=20的话则显示正确。

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:
  • Browser version [浏览器类型和版本]:
  • OS Version [操作系统类型和版本]:

Expected behaviour [期望结果]

ECharts option [ECharts配置项]

option = {
color: ['#36bbd2', '#FEA054', '#FEE054', '#9CCC5A', '#F77157', '#9054FE', '#3988FF'],
					legend: {
						x: 'center',
						y: 'bottom',
						data: legendData,
						itemWidth: 14,
						itemGap: 20,
						padding: 0,
						width:350,
						
					},
					series: [{
						name: '访问来源',
						type: 'pie',
						radius: '60%',
						center: ['50%', '50%'],
						minAngle: 20,
						stillShowZeroSum: false,
						hoverAnimation: false,
						selectedMode: false,
						selectedOffset: 0,
						legendHoverLink: false,
						data: [{
									value: 3,
									name: '本周到期'
								}, {
									value: '-',
									name: '下周到期'
								}, {
									value: '-',
									name: '本月到期'
								}, {
									value: 55,
									name: '未到期'
								}, {
									value: 66,
									name: '已完成'
								}, {
									value: 77,
									name: '暂停'
								}, {
									value: 88,
									name: '逾期'
								}],
						roseType: 'angel',
						clockwise: false,//逆时针
						label: {
							normal: {
								textStyle: {
									color: '#999'
								},
								formatter: "{c}"
							}
						},
						labelLine: {
							normal: {
								lineStyle: {
									color: '#e5e5e5'
								},
								smooth: 0,
								length: 5,
								length2: 15
							}
						},
						itemStyle: {
							normal: {
								shadowBlur: 20,
								shadowColor: 'rgba(0, 0, 0, 0.3)'
							},
						},

						animationType: 'scale',
						animationEasing: 'elasticOut',
						animationDelay: function(idx) {
							return Math.random() * 200;
						}
					}]
}

Other comments [其他信息]

Markdown

@100pah 100pah added the bug label Apr 29, 2017
@100pah 100pah closed this as completed in 5d838fc May 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants