 
         path.transition().duration(750).attrTween('d', (d,i) ->
             `var i`
-            theOldDataInPie = oldPieData ? piedata
-            console.log('oldPieData',oldPieData)
+            theOldDataInPie = @oldPieData ? piedata
+            console.log('@oldPieData',@oldPieData)
             # Interpolate the arcs in data space
             s0 = undefined
             e0 = undefined

        #

    onData: (data) ->
        oldPieData = piedata

        #$(@node).fadeOut().fadeIn()
        @container = $(@node).parent()

            .attr('font-size',(if typeof totalTickets isnt 'string' then radiusi + 'px' else '2em'))
            .style('opacity', 1)

        @oldPieData = piedata
        return
