[Refactor] Provide an chart instance API similar to `dispatchAction` so as to consolidate component behavior APIs.
Open
@xile611 is already working on this.
Since Dec 25, 2024.
enhancement
- Dominant language
- TypeScript
- Stars
- 1.8k
- Forks
- 221
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 26
Description
Proposal
Provide an chart instance API similar to dispatchAction so as to consolidate component behavior APIs.
提供类似于 dispatchAction 的 实例接口,收拢 vchart 上目前提供的组件行为 API
Background
vchart 实例上有若干和组件行为相关的 API:
setLegendSelectedDataById/setLegendSelectedDataByIndexupdateIndicatorDataById/updateIndicatorDataByIndexsetDimensionIndexgeoZoomById/geoZoomByIndex
后续组件 API 可能越加越多,不是一个良好的设计,且会影响包体积大小;
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.