echarts Add support for API for toolbox features like dataView, magicType

zd287kbt  于 2022-11-13  发布在  Echarts
关注(0)|答案(5)|浏览(204)

What problem does this feature solve?

There are API available for two toolbox features

  1. saveAsImage: Using echartsInstance.getDataURL
  2. dataZoom: Using action.dataZoom

If API is made available for dataView and magicType , external action buttons can be used to trigger these functionalities.

In many applications, external action buttons can be used configured according to the application UI requirement.

What does the proposed API look like?

May be action button for dataView can be provided like

action.dataView.toggle()
// or
action.dataView.show() and action.dataView.hide()

Similar can be for magicType like

dispatchAction({
    type: 'magicType',
    switching: 'line'                      // or `bar` or `stack`, etc.
})
rqqzpn5f

rqqzpn5f1#

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.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org . Please attach the issue link if it's a technical questions.

If you are interested in the project, you may also subscribe our mail list .

Have a nice day! 🍵

yqhsw0fo

yqhsw0fo2#

Any update for this feature?

oaxa6hgo

oaxa6hgo4#

mark, magicType action feature

gwbalxhn

gwbalxhn5#

Hello!
I saw you can call dispatchAction({type: 'restore'}) as one of them, but I can't find how to invoke the others, if they're implemented this way.
Any update on this?

相关问题