populating a graph with colors