Basically, I have the same question as Geomap and maker color that was never answered. Is it possible to set the marker color of a geomap panel based on the hex value of the record?
It looks like you can set the marker color to a field. But like the original question it doesn’t seem to take a hex value (I tried returning #fff
, fff
, #ffffff
, ffffff
) as nothing changes. What format is it expecting the color to be in? Or am I mis-understanding the purpose of that option?
what is your data source? geoson or something else?
My data source is InfluxDB that returns a name, latitude, longitude, and color.
To be able to set different marker colors change color scheme to Multiple continuous colors (by value):
Grafana automatically assigns colors based on the percentage of a value relative to the min and the max of the field or series. Select from: Green-Yellow-Red, Red-Yellow-Green, Blue-Yellow-Red, Yellow-Red, Blue-Purple, and Yellow-Blue.
And you can also use Value mappings to specify custom colors:
In this example your InfluxDB query is supposed to return text strings that are being mapped to required colors.
if you want dynamic map customization I would go with this approach
I think maybe I mis-understood how this worked. I thought the field was supposed to contain the color to use. But the field is supposed to contain a integer which it then determines the color of automatically based on the chosen palette.
I guess my question is more of a feature request. Instead of using a value to determine the color automatically I would like to supply the color and ignore the palette.
yeah that is currently not a feature available with the stock gemap plugin