Fixed the color bug for the graphs.
Now all the graphs are in different colors and it's consistent with the legend too.