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

折线图和面积图切换之后,图上的数据没有完全渲染 #4158

Closed
luyao2158 opened this issue Sep 20, 2022 · 1 comment
Closed

Comments

@luyao2158
Copy link

描述:

  1. 数据量比较大,每次渲染都有2880条,第一次渲染的数据中有null的情况,第二次渲染的数据都是大于0的数据
  2. 第一次渲染折线图是完全展示的(数据中有null),切换数据就会展示不全(数据中没有null),鼠标hover上去,折线图/面积图完全展示出来

效果展示:
https://user-images.githubusercontent.com/40731270/191162562-1d3f0a1d-324d-4786-8c2d-7aea35fd1294.mov

@hustcc
Copy link
Member

hustcc commented Dec 6, 2022

试试这个:

new Chart({
  // ...
  localRefresh: false,
})

原因是在绘制的时候,出现脏矩阵的判断问题。

@hustcc hustcc closed this as completed Dec 6, 2022
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