Added dynamic generation of colors for graphs