Add a graph legend