1 Reply Latest reply on Nov 29, 2010 7:33 PM by harry_lai84

    add piechart label only by clicking

    harry_lai84 Level 1

      I'd like to add a lable only for the exploding slice for the piechart when the user clicks on it. The following code will explode the slice, what do I need to add label to the slice? Thanks for sharing your knowledge!

       

      protected function pieChart_itemClickHandler(evt:Event):void

      {

      var arr:Array = [0,0,0,0,0,0,0,0,0,0,0];

      arr[evt.target.selectedChartItem.index] = 0.1;

       

      pieChart_MyList.series[0].perWedgeExplodeRadius = arr;

       

      }