{"action":"created","issue":{"url":"https://api.github.com/repos/ecomfe/echarts/issues/3420","repository_url":"https://api.github.com/repos/ecomfe/echarts","labels_url":"https://api.github.com/repos/ecomfe/echarts/issues/3420/labels{/name}","comments_url":"https://api.github.com/repos/ecomfe/echarts/issues/3420/comments","events_url":"https://api.github.com/repos/ecomfe/echarts/issues/3420/events","html_url":"https://github.com/ecomfe/echarts/issues/3420","id":160111212,"number":3420,"title":"动态刷新问题","user":{"login":"tiant796180","id":19923713,"avatar_url":"https://avatars.githubusercontent.com/u/19923713?v=3","gravatar_id":"","url":"https://api.github.com/users/tiant796180","html_url":"https://github.com/tiant796180","followers_url":"https://api.github.com/users/tiant796180/followers","following_url":"https://api.github.com/users/tiant796180/following{/other_user}","gists_url":"https://api.github.com/users/tiant796180/gists{/gist_id}","starred_url":"https://api.github.com/users/tiant796180/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiant796180/subscriptions","organizations_url":"https://api.github.com/users/tiant796180/orgs","repos_url":"https://api.github.com/users/tiant796180/repos","events_url":"https://api.github.com/users/tiant796180/events{/privacy}","received_events_url":"https://api.github.com/users/tiant796180/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-14T07:05:53Z","updated_at":"2016-06-14T07:47:32Z","closed_at":null,"body":"我原来在使用2.0版本时候 在刷新时候 \r\n直接_chart.setOption(option) 全部属性 图形dataZoom和通过toolbox切换的图形 都会继续保持 只是数据更新了 这种效果很好 也许是误打误撞的功能\r\n\r\n升级3.0后 _chart.setOption(option)会将图形的dataZoom和toolbox切换的图形全部重置 \r\n这个倒也理解 只能更新data数组 但是当多线图时候 并不是很方便 只能解析结果集 然后按顺序一个一个更新data 这个只能这么做吗？\r\n我本来打算\r\n\t_chart.setOption({\r\n\t\t\t\tseries: chart.series\r\n\t\t\t});\r\n但是发现也不行 因为有\"type\":\"line\" 会覆盖toolbox切换的图形\r\n求教下 有没有简单的方法\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ecomfe/echarts/issues/comments/225804701","html_url":"https://github.com/ecomfe/echarts/issues/3420#issuecomment-225804701","issue_url":"https://api.github.com/repos/ecomfe/echarts/issues/3420","id":225804701,"user":{"login":"tiant796180","id":19923713,"avatar_url":"https://avatars.githubusercontent.com/u/19923713?v=3","gravatar_id":"","url":"https://api.github.com/users/tiant796180","html_url":"https://github.com/tiant796180","followers_url":"https://api.github.com/users/tiant796180/followers","following_url":"https://api.github.com/users/tiant796180/following{/other_user}","gists_url":"https://api.github.com/users/tiant796180/gists{/gist_id}","starred_url":"https://api.github.com/users/tiant796180/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiant796180/subscriptions","organizations_url":"https://api.github.com/users/tiant796180/orgs","repos_url":"https://api.github.com/users/tiant796180/repos","events_url":"https://api.github.com/users/tiant796180/events{/privacy}","received_events_url":"https://api.github.com/users/tiant796180/received_events","type":"User","site_admin":false},"created_at":"2016-06-14T07:47:32Z","updated_at":"2016-06-14T07:47:32Z","body":"var series = [];\r\n\t\t\tfor(var i=0;i<chart.series.length;i++){\r\n\t\t\t\tseries.push({\"data\":chart.series[i].data});\r\n\t\t\t}\r\n\t\t\t_chart.setOption({series:series });\r\n\r\n这样倒是可以 就是有点别扭"}}
{"actor":{"display_login":"tiant796180"}}