1 Reply Latest reply on Jul 16, 2009 9:46 AM by BosDog

    PieSeries Labelfunction to DollarFormat

    BosDog Level 1

      I'm having trouble implementing the labelfunction piece to the pieseries. I'm able to this via a datagrid but the same function i am using will not work for the pieseries. Could anyone provide some code to help?

       

      Thanks

        • 1. Re: PieSeries Labelfunction to DollarFormat
          BosDog Level 1

          well i answered my own question... here is the code for anyone interested:

           

           

           

           

           

           

          public function

          display(

          data:Object,

          field:String,

          index:Number,

          percentValue:Number):String

          {

           

           

          return

          cf.format(data.discountVarAmt);

           

           

           

          <mx:CurrencyFormatter id="cf"

          />

           

          and for the labelfunction add:

          labelFunction="

          display"