update graph formatting