折线图 changeData() 后 折线连接点颜色不改变
- Dominant language
- JavaScript
- Stars
- 8k
- Forks
- 637
- PR merge metrics
- No merged PRs in 30d
Description
- [x] I have searched the [issues](https://github.com/antvis/f2/issues) of this repository and believe that this is not a duplicate.
### Reproduction link
[http://139.199.105.17/f2-demo.html](http://139.199.105.17/f2-demo.html)
### Steps to reproduce
有demo
### What is expected?
changeData后折线连接点颜色随数据做出相应改变
### What is actually happening?
changeData后折线连接点颜色不改变
| Environment | Info |
|---|---|
| f2 | 3.4.4 |
| System | 安卓 |
| Browser | 微信小程序 基础库 2.9.4 |
---
连续执行两次可以改变颜色但失去动画效果 或在changeData()后执行chart.repaint()
Contributor guide
Research direction
Start with the linked reproduction demo and trace the chart.changeData() update path, comparing it with the chart.repaint() behavior mentioned in the issue. Verify the case where line-point colors depend on changed data, including whether animation is preserved. Done means the colors update after one changeData() call without requiring repaint or a second call.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100