Add legend to graph