created bar chart with svg and d3