FabriPetrelli
Posts: 14
Joined: Thu Nov 12, 2020 9:39 am

Colors start at minimum value

Hi everyone,

I'm doing a Choropleth Map with Highmaps and I was wondering if it's possible to assign to the county with the lowest value the lowest color on the stops.

For example in the linked stackblitz how can the lowest value (Samangan - 908) be yellow and then the other according to the color scheme provided?

https://stackblitz.com/edit/react-mvjjq ... src/App.js

Many thanks!
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Colors start at minimum value

Hi,

Thanks for contacting us with your question!

I am not sure if I fully understand your question. You can use chart.events.load to modify your data by adding color to the element of the lowest value.

Demo:
https://stackblitz.com/edit/react-zzjkp ... c%2FApp.js

API Reference:
https://api.highcharts.com/highcharts/chart.events.load

Let me know if that was what you were looking for!
Regards!
Magdalena Gut
Developer and Highcharts Support Engineer

Return to “Highcharts Maps”