graph updates when time scale is changed