using d3 in examples
creating a view