update graph labels