             .remove()
 
         labels = labelGroup.selectAll("text")
-            .data([data].sort((p1,p2) -> return p1.startAngle - p2.startAngle))
+            .data(piedata.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)

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

        if !data
          data = @get("value")
        if !data
          return

        $(@node).children(".title").text($(@node).attr("data-title"))
        $(@node).children(".more-info").text($(@node).attr("data-moreinfo"))

        
        path = pathGroup.selectAll("path.pie")
            #.data(data)
            .data(piedata)

        path.enter().append("path")
            .attr("class", "pie")
