updating graph formatting