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

折线图计算path时出现NaN #359

Closed
xufengzz opened this issue Oct 15, 2022 · 6 comments
Closed

折线图计算path时出现NaN #359

xufengzz opened this issue Oct 15, 2022 · 6 comments

Comments

@xufengzz
Copy link

  • Bruno 版本
    2.0-3.0都有该问题

只要组装的DBDataNodeModel 值包含多个相同值时。计算path会NaN导致报错
折线图计算path时出现NaN

复现步骤
折线图无法实现 多个月份 展示0的效果
25

@leftcoding
Copy link
Collaborator

给个最小的demo

@xufengzz
Copy link
Author

给个最小的demo
直接照着官网 demo写的 看下是bug吗

效果一 (单条线、带阴影)

flutter_demo.zip

@zhoujuanjuan
Copy link
Collaborator

还请贴图表明,什么场景需要多个相同的值

@xufengzz
Copy link
Author

还请贴图表明,什么场景需要多个相同的值

随便几个月没数据。就是0 不很正常嘛、或者一年中几个月没数据是0也会报错

@zasray
Copy link

zasray commented Oct 24, 2022

还请贴图表明,什么场景需要多个相同的值

随便几个月没数据。就是0 不很正常嘛、或者一年中几个月没数据是0也会报错

有理

@zhoujuanjuan
Copy link
Collaborator

zhoujuanjuan commented Nov 1, 2022

有道理,如果一张有效的折线图是应该 x,y轴并存的,所以建议当数据都为0时,折线图会展示异常,当然组件内部也应该有提示关于这点的限制,我们已经在 #364 加上,感谢反馈

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

4 participants