working d3 barchart