             .remove()
         
         labelLayout = d3.geom.quadtree()
-            .extent([[-that.width,-that.height], [that.width, that.height] ])
+            .extent([[-d3.width,-d3.height], [d3.width, d3.height] ])
             .x((d) -> return d.x)
             .y((d) -> return d.y)
             ([]) #create an empty quadtree to hold label positions

        pointers.exit().remove()
        
        pointers.transition().attr("d", (d) ->
            if (d.cx > d.l) {
                return "M" + (d.l+2) + "," + d.b + "L" + (d.r-2) + "," + d.b + " " + d.cx + "," + d.cy
            } else {
                return "M" + (d.r-2) + "," + d.b + "L" + (d.l+2) + "," + d.b + " " + d.cx + "," + d.cy
            }
        )

                )
                .attr("y", (d) ->
                    return d.y
                )


        pointers = pointerGroup.selectAll("path.pointer")
