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

在数据长度为0时,存在脚本错 #238

Closed
ZiQiangWang opened this issue Aug 13, 2018 · 4 comments
Closed

在数据长度为0时,存在脚本错 #238

ZiQiangWang opened this issue Aug 13, 2018 · 4 comments
Assignees
Labels

Comments

@ZiQiangWang
Copy link

  • F2 Version: 3.1.19
  • Platform: mac
  • Mini Showcase(like screenshots):
  • CodePen Link:

提供的data长度为0时,脚本错,是否考虑处理边界情况
image

@simaQ
Copy link
Contributor

simaQ commented Aug 13, 2018

有没有可复现的 demo?

@ZiQiangWang
Copy link
Author

http://antv.alipay.com/zh-cn/f2/3.x/demo/line/basic.html
将这个例子里面的data改为[]就可以了,其他的图表类型我没有尝试

@simaQ simaQ self-assigned this Aug 13, 2018
@simaQ simaQ added the bug label Aug 13, 2018
@simaQ
Copy link
Contributor

simaQ commented Aug 13, 2018

emmmmmm, 是个 bug,这个我在 3.2.0-beta 版本中已经修复了... 哈哈,我先修复下(建议使用 3.2.0-beta.x 版本,这几天我就会发布稳定版的)

@ZiQiangWang
Copy link
Author

嗯嗯,这个影响不大,我可以规避下

simaQ added a commit that referenced this issue Aug 13, 2018
fix: fix the error caused by empty data.Closed #238.
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

2 participants