镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

.setOption not trigger dataView refresh #12594

Open

Description

@geminate

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

Activity

  1. echarts-bot commented on May 9, 2020

    @echarts-bot

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

  2. geminate commented on May 15, 2020

    @geminate
    Author

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

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

  3. added this to the TBD milestone on May 31, 2020
  4. removed
    pendingWe are not sure about whether this is a bug/new feature.
    on Jun 29, 2020
  5. mrmoheb commented on Feb 27, 2022

    @mrmoheb

    Do we have any luck to resolve this issue?

  6. easyhunn commented on Dec 22, 2023

    @easyhunn

    Did anyone have official solutions for this?

  7. helgasoft commented on Dec 24, 2023

    @helgasoft

    Is this about auto-refreshing dataview on data update, without even looking at the chart ?
    If yes, it may have some marginal value as monitoring tool.
    @geminate, could you please provide a complete code example? I tried the hack but dataView._dom is null...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in English

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions