Fix Bug in Timeseries Widget of "undefined method last"

There is a bug in the timeseries widget codes. Changed method to ticks.max instead of ticks.last for the enumerator class in timeseries widget.