Limit connected action in echarts.connect

kknvjkwl  于 2022-11-03  发布在  Echarts
关注(0)|答案(5)|浏览(147)

What problem does this feature solve?

In some cases, only part of the action wants to be connected. Like the case in #13630 , #17504

What does the proposed API look like?

The second parameter is a list of fired events.

echarts.connect([chart1, chart2], ['dataZoom', 'visualMap']);
93ze6v8z

93ze6v8z1#

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 question.

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

Have a nice day! 🍵

x0fgdtte

x0fgdtte2#

Yes, I also need this feature: connect func can set which action to connect.

4dbbbstv

4dbbbstv3#

Or can echarts support 'escapeConnect' to avoid connect when dispatchAction
chartInstance.dispatchAction({ type: 'legendSelect', name: 'test', escapeConnect: true });

qmelpv7a

qmelpv7a4#

What problem does this feature solve?

In some cases, only part of the action wants to be connected. Like the case in #13630

What does the proposed API look like?

The second parameter is a list of fired events.

echarts.connect([chart1, chart2], ['dataZoom', 'visualMap']);

I read source code, find this method to avoid be connected, you can try it.

chartInstance.dispatchAction({
  type: 'legendUnSelect',
  escapeConnect: true,
  batch: [
    {
      name: key,
      selected: legendsSelected,
    },
  ],
});
6tqwzwtp

6tqwzwtp5#

@14glwu Hi, I think escapeConnect is for inner usage. It's not convenient for users.

相关问题