             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

    update: (dataSet) ->
        # Remove any previous svg
        $(@node).children('svg').remove()
        # Define the container
        #container = @container#$(@node).parent()
        #console.log('update -> @instanceDataId: ',@instanceDataId)

        #
        # CONFIG ZONE
        #

        # Width of the SVG area
        width = @width#(Dashing.widget_base_dimensions[0] * @container.data('sizex')) - Dashing.widget_margins[0] * 4 * (@container.data('sizex') - 1) 

        # Height of the SVG area allowing for header and footer text
        height = @height#(Dashing.widget_base_dimensions[1] * @container.data('sizey')) - 120 

        # Calculated min dimension of the SVG area
        radius = @radius#Math.min(width, height) / 2

        # Outer radius of the pie
        radiuso = @radiuso#Math.min(width, height) / 3

        # Inner radius of the pie (zero = pie, non-zero = donut)
        radiusi = @radiusi#radiuso * 2 / 3

        # Color scale for pie slices
        color = @color#d3.scale.category20()

        # X-offset for drop shadow filter
        dropshadowx = @dropshadowx#2

        # Y-offset for drop shadow filter
        dropshadowy = @dropshadowy#2

        # [STRING] Blur value for drop shadow filter
        dropshadowblur = @dropshadowblur#'1.2'

        #
        # END CONFIG ZONE
        #
        
        if !dataSet
            dataSet = @get('data')

        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 + ')')

        piedata = pie(dataSet)

        # Remove zero values from our pie data
        piedata = piedata.filter (pd) -> pd.value isnt 0

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