graph of a bar chart using d3 but breaks on decimals