Fix Bug in Timeseries Widget of "undefined method last"

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