graphing button display logic