add min max graph