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


    @accessor 'data'

    ready: ->
        @oldPieData = ''

    onData: (data) ->
        #$(@node).fadeOut().fadeIn()
        @update(data.data)

    update: (dataSet) ->

            .attr('alignment-baseline', 'mathematical')
            .attr('filter','url(#dropshadow)')

        oldPieData = piedata
        return
