Creates bar graph in d3.