Working d3 bar chart with svg