format graph cells