Copy bar chart example for d3.js.