How to set the color of drawings (line or bar)

Now the bar colors are random set by Grafana. Is there a way to set the drawing color manually?

Thanks

yes, click on the colored line icon to the right of the legend
http://docs.grafana.org/features/panels/graph/

Thank you so much! The solution is not very obvious. But it is very easy to use when you figure it out.

This works but I have a dashboard that has a variable to select a servername from an automatically updated drop down list. When I try to save a new color for a graph element, it only saves it for the specific server I had selected. In this example we have several single series graphs showing different details for a server with varied ranges (like CPU percent, and disk used MB). So they make sense in different panels. However since green is the default color I wanted to break up the monotony of a bunch of green graphs. But when I select one and change it to another color and save the graph, it changes back to green for any other server. Only when I return the the server that was in view when I changed it does the new color appear. It seems this is saving the color choice by the ‘name’ of the series instead of it just being saved as the color for the ‘first series in this panel’.

1 Like

Just a suggestion off of this topic:
I haven’t seen anything about this, but it would be neat to be able to set default colors for the dashboard in dashboard settings. You could go in order of how many lines would be in your dashboards.
1 = (red)
2 = (blue)
3 = (yellow)
So then if there’s 1 line in a graph it’s going to be red.
If there are 2 lines, the first one will be red, and the second one will be blue and so forth.
Hopefully that makes sense!