Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit connected action in echarts.connect #13645

Open
pissang opened this issue Nov 19, 2020 · 5 comments
Open

Limit connected action in echarts.connect #13645

pissang opened this issue Nov 19, 2020 · 5 comments
Labels
en This issue is in English new-feature
Milestone

Comments

@pissang
Copy link
Contributor

pissang commented Nov 19, 2020

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']);
@echarts-bot
Copy link

echarts-bot bot commented Nov 19, 2020

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 [email protected]. 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! 🍵

@echarts-bot echarts-bot bot added en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Nov 19, 2020
@pissang pissang removed pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Nov 19, 2020
@pissang pissang added this to the 5.2.0 milestone Nov 19, 2020
@14glwu
Copy link

14glwu commented Mar 28, 2021

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

@14glwu
Copy link

14glwu commented Mar 29, 2021

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

@14glwu
Copy link

14glwu commented Mar 29, 2021

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

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

@pissang
Copy link
Contributor Author

pissang commented Apr 6, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English new-feature
Projects
None yet
Development

No branches or pull requests

3 participants