change time to peak graph