use TimeSeries instead of XYSeries