Auto update the graph