     #@render(data.data)
     @update(data.data)
   buildPieStructure: ->
-    width = 300
-    height = 300
-    radius = Math.min(width, height) / 2
+    @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 + ')')
+    @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) ->

      endAngle: d.endAngle)
    (t) ->
      b = i(t)
      return arc b
  removePieTween: (d, i) ->
    `var i`
    that = this

      endAngle: e0)
    (t) ->
      b = i(t)
      @arc b
  update: (dataSet) ->
    if !dataSet
        dataSet = @get("data")
