apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.1k stars 19.6k forks source link

Access toolbox features programmatically without the need of the toolbox #10274

Open DeadManPoe opened 5 years ago

DeadManPoe commented 5 years ago

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.

echarts-bot[bot] commented 5 years ago

Hi! We've received your issue and please be patient to get responded. 🎉 The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

Have a nice day! 🍵

deqingli commented 5 years ago

If you only want to data zoom, you can use the dataZoom component instead of the toolbox.

DeadManPoe commented 5 years ago

I want to do area data zoom which is different from a simple data zoom that you can do by using the data zoom action. I want to be able to select an area on the graph and then zoom inside after the selection is completed; to accomplish this now you can only resort to the toolbox data zoom feature or dispatch the takeGlobalCursor of type 'dataZoomSelect' action, but you cannot dispatch the action without having the toolbox, otherwise, the action will not produce anything.

Cloud11PL commented 4 years ago

Any updates regarding this issue?

develar commented 3 years ago

That's really a pity. Mouse zoom is working, but no simple way to do enable area data zoom.

simonedavico commented 3 years ago

I agree, there should be an option to disable the default feature icons but leave the API enabled to be controlled by dispatchAction calls.

winsmith commented 1 year ago

Apparently download as image is available directly