apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.48k stars 19.62k forks source link

[Feature] connection pie to the map #17285

Closed acekavinxx closed 3 months ago

acekavinxx commented 2 years ago

What problem does this feature solve?

I have one map, and one pie, which seperated by trees, and those tree can be found in different provinces. what I want is click on the tree in pie, corresponding province get highlight. Like following: image when I click yellow part in pie, it correponse to Guandong province, and then the whole part in map can be highlight. If you need I have the whole folder can be shared.

`<!DOCTYPE html>

ECharts
// ` ### What does the proposed API look like? Don't need.
fuchunhui commented 2 years ago

unable to run the demo, try it like this.

mapChart_pie.on('click', function(params) {
    const index = 0; // computed the index of Guandong province
    myChart_map.dispatchAction({
        type: 'highlight',
        dataIndex: index
    });
});
github-actions[bot] commented 4 months ago

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] commented 3 months ago

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!