如何异步更新数据并可缩放平移
- Dominant language
- JavaScript
- Stars
- 8k
- Forks
- 637
- PR merge metrics
- No merged PRs in 30d
Description
- [ ] I have searched the [issues](https://github.com/antvis/f2/issues) of this repository and believe that this is not a duplicate.
### What problem does this feature solve?
在使用k线图时,我需要先初始化chart后,此时是没有数据的,再异步查询数据更新到chart,但我遇到问题,由于期望chart能够平移,不知道在异步获取数据后如何更新数据,以前用过别的chart,可以在初始化chart时如果初始化指定可以缩放则设置显示数据的占比,后面直接更新数据即可,但F2不知道如何使用。官方例子是先异步获取数据成功后再render
### What does the proposed API look like?
异步更新数据并可缩放平移
Contributor guide
Research direction
Start by reviewing the chart initialization and rendering flow described in the issue, then identify the existing data-update and zoom/pan entry points. Define how asynchronously loaded data should update an already initialized chart while preserving scaling and panning, and verify the behavior with a reproducible example or test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100