Update the graph based on an entire dataset