VisActor / VisActor/VChart

[Refactor] Provide an chart instance API similar to `dispatchAction` so as to consolidate component behavior APIs.

Open
#2,989 0 comments 0 reactions 1 assignee View on GitHub

@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/ setLegendSelectedDataByIndex
  • updateIndicatorDataById/updateIndicatorDataByIndex
  • setDimensionIndex
  • geoZoomById/geoZoomByIndex

后续组件 API 可能越加越多,不是一个良好的设计,且会影响包体积大小;

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.