[email protected]
Posts: 1
Joined: Wed Dec 28, 2022 2:47 pm

multi colors for one country

Hey there
is it possible to create world wide map, each country should get 2 or more colors. if more than one color the country should split it area more or less equaly and paint itself with those two colors (half half but by country area).
is it possible?
I would love to get a link with example.
tnx alot
kamil.k
Posts: 458
Joined: Thu Oct 06, 2022 12:49 pm

Re: multi colors for one country

Hello [email protected],

Welcome to our forum and thanks for contacting us with your question!

You can easily achieve that by defining the linearGradient as a color, take a look: https://jsfiddle.net/BlackLabel/Ledxbw1s/.

The percentage splitting of the colors can be set by the stops property. You can read more about the gradients here: https://api.highcharts.com/class-refere ... olorObject

Let me know if that was what you were looking for,
Kind Regards!
Kamil Kubik
Highcharts Developer

Return to “Highcharts Maps”