         
         path = pathGroup.selectAll("path.pie")
             #.data(data)
-            .data(pie(data))
+            .data([data])
 
         #path.enter().append("path")
         #    .attr("class", "pie")

            .remove()

        labels = labelGroup.selectAll("text")
            .data(data.sort((p1,p2) -> return p1.startAngle - p2.startAngle))
        labels.enter()
            .append("text")
            .attr("text-anchor", "middle")

        arcs.append("svg:path").attr("fill", (d, i) -> color i)
          .attr("fill-opacity", 0.4).attr("d", arc)

  render: (data) ->
        #console.log("update pie", data);

        if !data
