change max value and graph view