only use graphMax if set