Strgt
Posts: 37
Joined: Fri Dec 03, 2021 2:11 pm

Map Drilldown with overlaid pie charts

Hello,

I have two questions about this Drilldown world map. I would be very grateful if you could help me.

https://jsfiddle.net/nurxhjsa/
1. Now I can only click on the continent text/name, not on the pie chart, which is on the continent. Is it possible to see the countries of the continent by clicking on the pie chart too?

2. France has a small island in the African continent and England in the South American continent. Therefore, the map displays the values of France and England on these continents too. Is there any way to remove the value, country name and pie chart of these two countries from the African continent and South American continent?
Screenshot (242).png
Screenshot (242).png (46.41 KiB) Viewed 394 times
Screenshot (243).png
Screenshot (243).png (52.71 KiB) Viewed 394 times
Thank you in advance for your help.

Sincerely yours
jakub.j
Posts: 1091
Joined: Tue Jan 24, 2023 11:14 am

Re: Map Drilldown with overlaid pie charts

Thanks for contacting us with your question!

1. I added a custom click event on pie series which trigger drilldown manually so that you can click on the pie and drill down.

2. I created countriesToRemove array in the demo, which contains the countryName and continentName of the cases you pointed out and implemented such logic so that the pie series isn't going to render for that values.

Demo: https://jsfiddle.net/BlackLabel/jz8Lsf1x/

Let me know if that was what you were looking for!
Best regards
Jakub

Return to “Highcharts Maps”