Skip to content

How to avoid all chart component re-rendering of chart on calling setOption to update graphics element #8834

@amittonge

Description

@amittonge

One-line summary [问题简述]

I am calling to setOption to only show/hide graphics element of type image but doing this causes hole chart re-render can we avoid this somehow in echart.

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:
  • Browser version [浏览器类型和版本]:
  • OS Version [操作系统类型和版本]:

myChart.setOption({ graphic: { id: 'image1', left: left, top: top, invisible: false, silent: false } }, false, false, true);

myChart.setOption({ graphic: { id: 'image1', invisible: true, silent: true } }, false, false, true);

Expected behaviour [期望结果]

ECharts option [ECharts配置项]

 myChart.setOption({
                    graphic: {
                        id: 'image1',
                        left: left,
                        top: top,
                        invisible: false,
                        silent: false
                    }
                }, false, false, true);

Other comments [其他信息]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions