updating graph style, and updating screenshot