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

timeline各时间点数据长度不同 #1549

Closed
dawnwords opened this issue May 17, 2015 · 2 comments
Closed

timeline各时间点数据长度不同 #1549

dawnwords opened this issue May 17, 2015 · 2 comments

Comments

@dawnwords
Copy link

刚刚接触echarts,用到了timeline的时候遇到了这样一个情况,以下面的demo为例:

  • timeline上有两个时间点2012,2013
  • 2012对应有一个series: [{data: [12, 13, 4, 32], name: '销量', type: 'bar'}]
  • 2013对应有一个series: [{data: [22, 12], name: '销量', type: 'bar'}]

数据长度不一致,结果点到2013的时候,还是显示4个bar,后面两个空位会不上2012的后两个bar
预期的效果是2012显示4个bar,2013只显示两个bar,需要怎么做呢?

@zhaohng
Copy link

zhaohng commented May 18, 2015

#1515

@redmed
Copy link
Contributor

redmed commented May 25, 2015

timeline中有notMerge参数,表示时间轴上多个option切换时是否进行merge操作,默认false。
修改为true即可。

参考API: http://echarts.baidu.com/doc/doc.html#Timeline

@redmed redmed closed this as completed May 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants