d3 template in place