How to specify color of graph accross charts?

I am using the repeat function for a graph and get values from MySQL. This results unfortunatelly in a different color for the same metric.
How can one specify a color for a particular metric?
I am aware of the manual option to change the color by clicking on the legend color. This does not fix the described problem.