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

mirror分面样式下,调用chart.changData(xx)后图表变得混乱 #4086

Closed
1 task
chennyshan opened this issue Aug 12, 2022 · 1 comment
Closed
1 task

Comments

@chennyshan
Copy link

chennyshan commented Aug 12, 2022

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

Reproduction link

https://g2-v4.antv.vision/zh/examples/bar/dodge#bar5

Steps to reproduce

  1. 打开官方demo链接:https://g2-v4.antv.vision/zh/examples/bar/dodge#bar5
  2. 在末尾添加代码:延迟2s并changeData():
setTimeout(() => {
  chart.changeData(data);
}, 2000);
  1. 观察图表,mirror分面已出现混乱
Environment Info
g2 4.2.5
System -
Browser -
@hustcc
Copy link
Member

hustcc commented Dec 6, 2022

当前对于 changeData 在分面是有问题,建议采用如下方式:

setTimeout(() => {
  chart.data(data);
  chart.render();
}, 1000)

@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