a graph of a line with different colors