🐛 [BUG]水波图(初始化percent为0),changeData后,界面percent值更新,但波浪不显示
- 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

percent初始值不为0

Contributor 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