barchart utility for d3