             bbox = @getBBox()
             #bbox.width and bbox.height will 
             #describe the size of the label text
-            #labelRadius = radius - 20
             labelRadius = radiuso + (radiuso - radiusi)
             d.x = Math.sin(a) * labelRadius
             d.l = d.x - bbox.width / 2 - 2

        pie = d3.layout.pie().value((d) -> d.value).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

        #piedata = pie(dataSet)
        piedata = pie(dataSet)
        # Remove zero values from our pie data
        piedata = piedata.filter (pd) -> pd.value isnt 0
        #console.log 'update pie', piedata

        #create a marker element if it doesn't already exist
        defs = svg.select('defs')

        labels.text((d) ->
            # Set the text *first*, so we can query the size
            # of the label with .getBBox()
            d.data.label + ': ' + d.data.value
        )
        .style('opacity',0)
