Reinit the data everytime the graph is updated.