update graph panel