add legend to graph, change color of each line