merge line-plot and bar-plot d3 stuff so they look similar
pug common code in plot-util.d3.js