How to change color of annotations bar based on a condition e.g. tag

Hello Everyone,

I am using Grafana version 8.1.0 and have a timeseries panel on which annotations are added using HTTP create annotation API and GUI both.

I want to change the color of the annotation bar based on tags added to that annotation.

I have tried to go through documentation but have not found a way to do it. Could someone help me out with this? I think this is a very basic requirement and I must be missing something here.

welcome to the :grafana: forum, @hdesai

are you talking about the dotted red bars like these?

https://play.grafana.org/d/000000010/annotations?orgId=1

I don’t believe the color is configurable. But this is an interesting idea. Might make a good feature request in the repo:

I would also like to color code different annotation “groups”