moved d3 demo directive