apache / apache/echarts

Access toolbox features programmatically without the need of the toolbox

Open
#10,274 9 comments 5 reactions 0 assignees View on GitHub
en
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### What problem does this feature solve?
The problem of accessing toolbox functionalities(i.e, area data zoom) without the need to use the toolbox itself. Now is possible to dispatch actions that map to toolbox functionalities(takeGlobalCursor) but these actions require the actual presence of the toolbox itself. My specific goal is to set by the default the behaviour of each graph to be similar to what Grafana offers: the exploration of data point but also the natural possibility of immediately select a portion of the graph and automatically zoom into it.

### What does the proposed API look like?
The API can remain the same as the one already offered by echarts(dispatching takeGlobalCursor actions) but without the need to have a toolbox introduced as part of the 'option' object.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.