var xyPath = d3.geoTransform({
point: function(ptx, pty) {
this.stream.point(x(ptx), y(pty));
}
});
.selectAll("path")
.data(d3.contourDensity()
.x(function(d) { return d.x; })
.y(function(d) { return d.y; })
.size([width, height])
.bandwidth(20)
(plotdata))
.enter().append("path")
.attr("d", d3.geoPath(xyPath));
svg2.selectAll(".levelLine path").transition(t)
.attr("d", d3.geoPath(xyPath));