antvis/G2

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

chennyshan posted onGitHub

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

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);
  3. 观察图表,mirror分面已出现混乱
Environment Info
g2 4.2.5
System -
Browser -

<!-- generated by antv-issue-helper. DO NOT REMOVE -->


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

setTimeout(() => {
  chart.data(data);
  chart.render();
}, 1000)
posted by hustcc over 2 years ago

Fund this Issue

$0.00
Funded

Pull requests