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

chart line don't render when data is exist null #3565

Closed
1 task
speanut-land opened this issue Aug 10, 2021 · 2 comments
Closed
1 task

chart line don't render when data is exist null #3565

speanut-land opened this issue Aug 10, 2021 · 2 comments

Comments

@speanut-land
Copy link

speanut-land commented Aug 10, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://codepen.io/speanut-land/pen/vYmvjqG

Steps to reproduce

Wait for the timer to change the data to Null, then need to manually hover, the chart will be re-rendered,

Environment Info
g2 4.1.23
System -
Browser -

1.Note that the chart animation needs to be turned off, otherwise, re-render, no expected effect
2.When the data is null, expect to behave as a breakpoint and chart re-render

@hustcc
Copy link
Member

hustcc commented Sep 30, 2021

image

@hustcc hustcc closed this as completed Sep 30, 2021
@speanut-land
Copy link
Author

设置了connectNulls并不能解决问题,example中数据通过setTimeout修改了俩次,"不包含Null" - "包含Null" - "不包含Null",在最后一次的"不包含Null"图表没有渲染出来,debug底层g-Canvas查看是数据变成NaN导致局部渲染出现了问题

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

2 participants