antvis / G2Plot

:dango: An interactive and responsive charting library based on G2.
https://g2plot.antv.antgroup.com
MIT License
2.55k stars 605 forks source link

🐛 [BUG]水波图(初始化percent为0),changeData后,界面percent值更新,但波浪不显示 #3737

Open MissCat819 opened 8 months ago

MissCat819 commented 8 months ago

G2Plot Version: 2.4.25 Test Link: https://g2plot.antv.antgroup.com/zh/examples/progress-plots/liquid#style Bug Description: 水波图changeData后界面显示未达到预期,具体如下: 1.初始化时percent值为0,随后更新percent值,changeData后,界面展示的percent为预期值,但是应该出现的波浪却不显示,当然前端也可以通过数据对比采用方案处理这种情况;

  1. 初始化时percent值不为0,随后更新percent值,changeData后,界面展示的percent为预期值,波浪也正常显示 Suggestion:觉得 changeData 还是需要完善一下 Other:G2( V5.1.14)不存在此情况

bug图示如下: percent初始值为0 47ec4a613f0f730f3b122bf506a8976

percent初始值不为0 1706615647393

feijihe commented 6 months ago

不止水波图这样,我之前使用折线图 第一次reder的时候 data = [],然后通过changeData 达不到预期效果,只能通过update渲染成非空图表后才能正常使用changeData