Unable to draw the time series plot

We can't copy from a screenshot, please post formated code instead, here is how to do it.