You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/05/04 05:14:31 UTC

[GitHub] [incubator-echarts] xkKevin opened a new issue #12560: Dataview 编辑数据之后重新渲染出错

xkKevin opened a new issue #12560:
URL: https://github.com/apache/incubator-echarts/issues/12560


   ### Version
   4.3.0
   
   ### Steps to reproduce
   点击数据视图删除某一行(如删除“美国	15276”)之后,重新绘制的pie chart把最后一行的name(即“其他”)删除了,“美国”还在,所有的数据也都错乱了(国家与数值没有对应),
   
   ### What is expected?
   在删除某一行之后,重新绘制图形,如 删除“美国	15276”这一行之后,饼图中不出现美国。
   
   ### What is actually happening?
   删除“美国	15276”这一行数据之后,只是删除了15276这个数据,但美国还在,而且其他国家的数据已经错乱了。
   
   ---
   // my Code
   
   var data = [{"name": "美国", "value": 15276.0}, {"name": "英国", "value": 4855.0}, {"name": "法国", "value": 3291.0}, {"name": "意大利", "value": 3157.0}, {"name": "西班牙", "value": 2859.0}, {"name": "巴西", "value": 1662.0}, {"name": "其他", "value": 5152.0}];
   let name = "各国累计死亡人数"; 
   
   option = {
   	toolbox: {
   		feature: {
   		    dataView:{
   		      readOnly: false  
   		    },
   		    restore:{},
   			saveAsImage: {
   				name: name
   			}
   		}
   	},
   
   	tooltip: {
   		trigger: 'item',
   		formatter: '{a} <br/>{b} : {c} ({d}%)'
   	},
   	series: [{
   		name: name,
   		type: 'pie',
   		data: data,
   		radius: '50%',
   		clockwise: false, // 逆时针排序
   		label: {
   			formatter: "{b} : {num|{c}} | {rate|{d}%}",
   			color: "black",
   			fontSize: 20,
   			rich: {
   				num: {
   					fontSize: 22,
   					fontWeight: 'bold',
   					color: "black"
   				},
   				rate: {
   					fontSize: 22,
   					fontWeight: 'bold',
   					color: "black"
   				},
   				symbol: {
   					fontSize: 22,
   					color: "black"
   				}
   			}
   		},
   		emphasis: {
   			itemStyle: {
   				shadowBlur: 10,
   				shadowOffsetX: 0,
   				shadowColor: 'rgba(0, 0, 0, 0.5)'
   			}
   		}
   	}]
   };
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] pissang closed issue #12560: Dataview 编辑数据之后重新渲染出错

Posted by GitBox <gi...@apache.org>.
pissang closed issue #12560:
URL: https://github.com/apache/incubator-echarts/issues/12560


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12560: Dataview 编辑数据之后重新渲染出错

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12560:
URL: https://github.com/apache/incubator-echarts/issues/12560#issuecomment-623261026


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
   
   If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] plainheart commented on issue #12560: Dataview 编辑数据之后重新渲染出错

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #12560:
URL: https://github.com/apache/incubator-echarts/issues/12560#issuecomment-623368542


   Hi~, It seems to be a bug, you can refer to #12561 for details.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] plainheart edited a comment on issue #12560: Dataview 编辑数据之后重新渲染出错

Posted by GitBox <gi...@apache.org>.
plainheart edited a comment on issue #12560:
URL: https://github.com/apache/incubator-echarts/issues/12560#issuecomment-623368542


   Hi~, It seems to be a bug, you can refer to #12561 for details and feel free to give your suggestions.
   这好像是个Bug,我在 #12561 中给出了一些个人的解决方法,你可以前往查看并给出一些你的建议。


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org