added a little d3 example taken from Plunker