change method to ticks.max instead of ticks.last for the enumerator in timeseries widget