{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-echarts/issues/9337","repository_url":"https://api.github.com/repos/apache/incubator-echarts","labels_url":"https://api.github.com/repos/apache/incubator-echarts/issues/9337/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-echarts/issues/9337/comments","events_url":"https://api.github.com/repos/apache/incubator-echarts/issues/9337/events","html_url":"https://github.com/apache/incubator-echarts/issues/9337","id":377303650,"node_id":"MDU6SXNzdWUzNzczMDM2NTA=","number":9337,"title":"饼图在配合setInterval使用时数据未能更新的问题","user":{"login":"KaylaChiu","id":32062252,"node_id":"MDQ6VXNlcjMyMDYyMjUy","avatar_url":"https://avatars0.githubusercontent.com/u/32062252?v=4","gravatar_id":"","url":"https://api.github.com/users/KaylaChiu","html_url":"https://github.com/KaylaChiu","followers_url":"https://api.github.com/users/KaylaChiu/followers","following_url":"https://api.github.com/users/KaylaChiu/following{/other_user}","gists_url":"https://api.github.com/users/KaylaChiu/gists{/gist_id}","starred_url":"https://api.github.com/users/KaylaChiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaylaChiu/subscriptions","organizations_url":"https://api.github.com/users/KaylaChiu/orgs","repos_url":"https://api.github.com/users/KaylaChiu/repos","events_url":"https://api.github.com/users/KaylaChiu/events{/privacy}","received_events_url":"https://api.github.com/users/KaylaChiu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-11-05T08:56:40Z","updated_at":"2018-11-07T02:50:26Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n为了方便我们能够复现和修复 bug，请遵从下面的规范描述您的问题。\r\n-->\r\n\r\n\r\n### One-line summary [问题简述]\r\n饼图配合计时器setInterval使用时，当实例重新setOption，\r\n会出现某一项data的数据未能刷新的情况，即数据仍然为上一次渲染时的数据：\r\n\r\n![image](https://user-images.githubusercontent.com/32062252/47987610-ea3bff80-e11a-11e8-9fc3-7ef128947b06.png)\r\n\r\n，而当鼠标悬停在上面的时候，数据则能恢复正常：\r\n\r\n![image](https://user-images.githubusercontent.com/32062252/47987600-e4461e80-e11a-11e8-90ec-4fe9d9eefe2d.png)\r\n\r\n图为在官方实例Doughnut Chart上试验的结果，而出现数据未能刷新的情况也没有规律。\r\n尝试过手动频繁操作刷新数据，也没有出现类似的情况\r\n\r\n### Version & Environment [版本及环境]\r\n+ ECharts version [ECharts 版本]: 4.1.0-release\r\n+ Browser version [浏览器类型和版本]: chrome 70.0.3538.77\r\n+ OS Version [操作系统类型和版本]: win10\r\n\r\n\r\n### Expected behaviour [期望结果]\r\n\r\n\r\n### ECharts option [ECharts配置项]\r\n<!-- Copy and paste your 'echarts option' here. -->\r\n<!-- [下方贴你的option，注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->\r\n```javascript\r\noption = {\r\n    tooltip: {\r\n        trigger: 'item',\r\n        formatter: \"{a} <br/>{b}: {c} ({d}%)\"\r\n    },\r\n    legend: {\r\n        orient: 'vertical',\r\n        x: 'left',\r\n        data:['直接访问','邮件营销','联盟广告','视频广告','搜索引擎']\r\n    },\r\n    series: [\r\n        {\r\n            name:'访问来源',\r\n            type:'pie',\r\n            radius: ['50%', '70%'],\r\n            avoidLabelOverlap: false,\r\n            label: {\r\n                normal: {\r\n                    show: true,\r\n                    position: 'outside',\r\n                    textStyle: {\r\n                        fontSize: '30'\r\n                    },\r\n                    formatter:'{b}\\n{d}%'\r\n                },\r\n                emphasis: {\r\n                    show: true,\r\n                    textStyle: {\r\n                        fontSize: '30'\r\n                    }\r\n                }\r\n            },\r\n            labelLine: {\r\n                normal: {\r\n                    show: false\r\n                }\r\n            },\r\n            data:[\r\n                {value:335, name:'直接访问'},\r\n                {value:310, name:'邮件营销'},\r\n                {value:234, name:'联盟广告'},\r\n                {value:135, name:'视频广告'},\r\n                {value:1548, name:'搜索引擎'}\r\n            ]\r\n        }\r\n    ]\r\n}\r\n\r\n**setInterval(function(){\r\n    option.series[0].data.forEach(function(ele){\r\n        ele.value = Math.ceil(Math.random() * 100);\r\n    });\r\n    myChart.setOption(option);\r\n}, 10000);**\r\n\r\n```\r\n\r\n\r\n### Other comments [其他信息]\r\n<!-- For example: Screenshot or Online demo -->\r\n<!-- [例如，截图或线上实例 (JSFiddle/JSBin/Codepen)] -->\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/incubator-echarts/issues/comments/436485897","html_url":"https://github.com/apache/incubator-echarts/issues/9337#issuecomment-436485897","issue_url":"https://api.github.com/repos/apache/incubator-echarts/issues/9337","id":436485897,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjQ4NTg5Nw==","user":{"login":"cuijian-dexter","id":28971820,"node_id":"MDQ6VXNlcjI4OTcxODIw","avatar_url":"https://avatars3.githubusercontent.com/u/28971820?v=4","gravatar_id":"","url":"https://api.github.com/users/cuijian-dexter","html_url":"https://github.com/cuijian-dexter","followers_url":"https://api.github.com/users/cuijian-dexter/followers","following_url":"https://api.github.com/users/cuijian-dexter/following{/other_user}","gists_url":"https://api.github.com/users/cuijian-dexter/gists{/gist_id}","starred_url":"https://api.github.com/users/cuijian-dexter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuijian-dexter/subscriptions","organizations_url":"https://api.github.com/users/cuijian-dexter/orgs","repos_url":"https://api.github.com/users/cuijian-dexter/repos","events_url":"https://api.github.com/users/cuijian-dexter/events{/privacy}","received_events_url":"https://api.github.com/users/cuijian-dexter/received_events","type":"User","site_admin":false},"created_at":"2018-11-07T02:50:26Z","updated_at":"2018-11-07T02:50:26Z","author_association":"CONTRIBUTOR","body":"This is really a bug."}}
{"actor":{"display_login":"cuijian-dexter"}}