#80 update the graph only when it's visible