banditarocks
Posts: 1
Joined: Tue Nov 27, 2018 12:38 pm

Highcharts map with different color code countries

How do i display a highchart map with different colors for different countries on load?
bastss
Site Admin
Posts: 1192
Joined: Wed Oct 17, 2018 10:59 am

Re: Highcharts map with different color code countries

Hi banditarocks!

It depends which kind of map. In most cases, we need to create a function to detect country and assign a required color. World map DEMO: http://jsfiddle.net/Bastss/dgL012hu/, Europe map DEMO: https://jsfiddle.net/Bastss/L0xm9azq/. Check also categorized map DEMO: http://jsfiddle.net/gh/get/library/pure ... egory-map/.

Best regards!
Sebastian Wędzel,
Highcharts Developer

Return to “Highcharts Maps”