update drawing graph.