Geomap change marker colour depending on variable value

  • What Grafana version and what operating system are you using? v9.1.2

  • What are you trying to achieve?
    I have a geomap with points already on the map. Now I want that the colour of each marker to change depending on the string value of a variable.

  • How are you trying to achieve it?
    I thought the answer was value mappings. So I created a override for variable “fracció” which is the one that I want the colour to change depending on its value:

  • What happened?

Nothing, the marker colours are still the default colour:

Maybe I have to “disable” this default colour?

  • What did you expect to happen?
    That the markers on the map would change depending on the variable value

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • Did you follow any online instructions? If so, what is the URL?

Well, it seems like writing the question helped me find the solution :slight_smile:

Just change the colour to the variable you want it to be dependant on. In my case: