Copying examples from d3js.org