-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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
吐槽一下,1、没有删除数据的功能只有addData 2、每次addData时候图标必须有2个以上值,否则报错! #394
Comments
感叹号能不能少几个?看着难受啊。 |
1、你没搞懂ECharts的数据驱动,为什么没有setTitle接口,为什么没有setLegend接口??其实addData都是可以没有的。你的option就是驱动图形的根本。 |
好吧,第一条解释还凑合,但是第二条我们的测试确实证实echarts当图表上只有一条记录时候使用addData是会报错的;我修改了一下官方的api http://echarts.baidu.com/doc/example/dynamicLineBar.html, series : [ 只是把len 10改为1然后就不正常了,改为2就可以了 |
Uncaught TypeError: Cannot read property '0' of undefined echarts.js:30 |
当我们把addDataAnimation设置为false时候虽然不报错了,但是仍然无法追加数据的 |
Got it~ |
另外提个建议,api里面的可用方法比较少或得到的信息不完整,例如点击事件,当点击图表上一个节点时获取的Data只是当前节点的数据,可否像tooltip那样获取到所有y轴数据呢 |
只支持两条线动态添加吗? |
啥?不已经fixed了吗? |
我说的是series数组长度,三条线或者四条线同时动态添加 |
try~ |
吐槽一下,1、没有删除数据的功能只有addData 2、每次addData时候图标必须有2个以上值,否则报错!!!!!!!!!
The text was updated successfully, but these errors were encountered: