finalized d3 axes
added legend for timeseries chart