add d3 example, fix formatting of other example