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

Comments

Projects
None yet
4 participants
@adamed

adamed commented Jan 20, 2016

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

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

@SuperZDev

This comment has been minimized.

Show comment
Hide comment
@SuperZDev

SuperZDev Jan 25, 2016

Contributor

@adamed

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

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

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

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

Contributor

SuperZDev commented Jan 25, 2016

@adamed

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

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

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

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

@pissang pissang added the bug label Jan 28, 2016

@100pah 100pah closed this in 907808d Feb 4, 2016

@Dave-SEO

This comment has been minimized.

Show comment
Hide comment
@Dave-SEO

Dave-SEO Nov 28, 2017

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

Dave-SEO commented Nov 28, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment