Set the labels and title for the graph