update graph color