     labels.exit().remove()
     labelLayout = d3.geom.quadtree().extent([
       [
-        -width
-        -height
+        -that.width
+        -that.height
       ]
       [
-        width
-        height
+        that.width
+        that.height
       ]
     ]).x((d) ->
       d.x

    radiusi = 90
    color = d3.scale.category20()
    pie = d3.layout.pie()#.sort(null)
    arc = d3.svg.arc().innerRadius(radiusi).outerRadius(radiuso)
    svg = d3.select(@node).append('svg').attr('width', width).attr('height', height).append('g').attr('transform', 'translate(' + width / 2 + ',' + height / 2 + ')')
    console.log 'update pie', dataSet
    that = this

    #@render(data.data)
    @update(data.data)
  buildPieStructure: ->
    @width = 300
    @height = 300
    @radius = Math.min(@width, @height) / 2
    @color = d3.scale.category20()
    @pie = d3.layout.pie().sort(null)
    @arc = d3.svg.arc().innerRadius(@radius - 100).outerRadius(@radius - 50)
    @svg = d3.select(@node).append('svg').attr('width', @width).attr('height', @height).append('g').attr('transform', 'translate(' + @width / 2 + ',' + @height / 2 + ')')
    return
  oldPieData: ''
  pieTween: (d, i) ->
