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

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

        
    ready: ->
        @instanceDataId = $(@node).attr('data-id')
        window.oldPieData = window.oldPieData or {}
        window.oldPieData[@instanceDataId] = window.oldPieData[@instanceDataId] or []

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

        # Define the container
        @container = $(@node).parent()

        #
        # CONFIG ZONE
