echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Feature] connection pie to the map

Open acekavinxx opened this issue 3 years ago • 2 comments

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.

`

ECharts

//

`

What does the proposed API look like?

Don't need.

acekavinxx avatar Jun 27 '22 16:06 acekavinxx

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
    });
});

fuchunhui avatar Jun 28 '22 07:06 fuchunhui

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] avatar Jun 27 '24 21:06 github-actions[bot]

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!

github-actions[bot] avatar Jul 05 '24 21:07 github-actions[bot]