echarts .setOption not trigger dataView refresh

cgyqldqp  于 2022-10-20  发布在  Echarts
关注(0)|答案(3)|浏览(219)

Version

4.7.0

Steps to reproduce

  1. init a echarts with toolbox-dataview
  2. click toolbox change to dataview
  3. use .setOption to update the data

What is expected?

the data in dataview refresh

What is actually happening?

the data in dataview not be refreshed

xqk2d5yq

xqk2d5yq1#

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 thatyou 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! 🍵

rsl1atfo

rsl1atfo2#

instance.refreshDataView = () => { const dataView = instance._componentsViews[2]._features.dataView if (dataView._dom) { dataView.onclick.bind(dataView)(dataView.ecModel, dataView.api) } }
目前通过这种 Hack 方式解决了,_componentsViews数组index视情况而定。

不过还是建议官方提供一个 手动触发toolbox里工具点击的方法

b09cbbtk

b09cbbtk3#

Do we have any luck to resolve this issue?

相关问题