TimeSeriesPlot: fixed legend setting bug