created d3 bar chart