Can now pass data to add_data for rebuilding the graph with new data