Closed acekavinxx closed 3 months 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
});
});
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.
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!
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: 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>