handle :legend for time-series-plot

this fixes #192 and fixes #189