angularjs d3 bar chart