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

饼图数据存在null值 无法展示 #2272

Closed
visiky opened this issue Apr 4, 2020 · 2 comments
Closed

饼图数据存在null值 无法展示 #2272

visiky opened this issue Apr 4, 2020 · 2 comments
Assignees
Labels

Comments

@visiky
Copy link
Member

visiky commented Apr 4, 2020

复现地址: https://riddle.alibaba-inc.com/riddles/1bb17906
期望不要自己过滤null值,因为图例希望也展示

@simaQ simaQ added the Bug label Apr 7, 2020
@simaQ
Copy link
Contributor

simaQ commented Apr 7, 2020

这里面有两个问题:

  1. 局部刷新问题:当数据中存在 null 值,通过 G2 的图形语法映射后生成的 shape 的 bbox 就会存在 NaN,而 G 目前的局部刷新策略对于这种情况的处理就是整个画布不绘制,这种策略不太符合预期,不能因为单个 shape 的 bbox 为 NaN,就让这个画布不绘制,关联 issue: [4.0] 当 shape 的 bbox 出现 NaN 时,局部刷新就会绘制出错(不绘制),G 层可否处理下,比如抛个异常也妥 G#343 @dengfuping 麻烦尽快解决下
  2. label bug,未过滤 value: null 的数据。如果 issue 中给出的代码不绘制 label,然后把 localRefresh: false 关闭,那么就符合预期了。

@visiky
Copy link
Member Author

visiky commented Apr 13, 2020

G2 3.6.x 有办法修复吗

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

3 participants