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:
    image

  • What happened?

Nothing, the marker colours are still the default colour:
image
image

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.
    None

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

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:
image