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

bug反馈:一个Echart实例多个饼图动态setOption报ID重复 #2452

Closed
adamed opened this issue Jan 20, 2016 · 2 comments
Closed

bug反馈:一个Echart实例多个饼图动态setOption报ID重复 #2452

adamed opened this issue Jan 20, 2016 · 2 comments
Labels

Comments

@adamed
Copy link

adamed commented Jan 20, 2016

bug重现示例:
http://jsbin.com/kidificifi/1/edit?html,output

描述:
如果在初始化设置Option时在series数组中设置多个饼图实例,在结果中可以看到多个饼图。
但是如果是在异步等动态修改setOption设置series的值时,Echart报错,压缩文件内提示id重复。

@SuperZDev
Copy link
Contributor

@adamed

这个情况是因为添加多个序列,没有指定series序列每项的name值,造成的。因为name值是用来

系列名称,用于tooltip的显示,legend 的图例筛选,在 setOption 更新数据和配置项时用于指定对应的系列。

顺便给你看一个修整好的例子

PS:这种多序列情况下,如何处理好呢?

@pissang pissang added the bug label Jan 28, 2016
@100pah 100pah closed this as completed in 907808d Feb 4, 2016
@Dave-SEO
Copy link

echart 谷歌浏览器最小化后再打开就显示空白,尤其是开定时实时获取数据,或者用socket.io,其他浏览器不会

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

4 participants