antvis / antvis/G2Plot

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

Open
#3,737 2 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
TypeScript
Stars
2.7k
Forks
591
PR merge metrics
No merged PRs in 30d

Description

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为预期值,但是应该出现的波浪却不显示,当然前端也可以通过数据对比采用方案处理这种情况;
2. 初始化时percent值不为0,随后更新percent值,changeData后,界面展示的percent为预期值,波浪也正常显示
Suggestion:觉得 changeData 还是需要完善一下
Other:G2( V5.1.14)不存在此情况

bug图示如下:
percent初始值为0
![47ec4a613f0f730f3b122bf506a8976](https://github.com/antvis/G2Plot/assets/68114977/e30d514d-3174-429a-a1b7-2d22549b0865)

percent初始值不为0
![1706615647393](https://github.com/antvis/G2Plot/assets/68114977/f1c761ed-bb6b-432e-a058-5ec4391e969d)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in the linked Liquid plot example with percent initially set to 0, then call changeData and compare it with a nonzero initial value. Trace the Liquid plot's changeData update path and verify that the wave appears after the update while the displayed percent remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.