1 Reply Latest reply on Apr 12, 2010 9:56 AM by matthew horn

    Charting Question : How to manipulate Legend's labels

    isolatedperson

      I'm using a PieChart Control that uses dynamic data.

       

       

      <mx:PieChart id="gendersChart">
           <mx:series>
                <mx:PieSeries nameField="gender" field="count"/>                    
           </mx:series>                    
      </mx:PieChart>
      
      <mx:Legend dataProvider="{gendersChart}">
      

       

       

       

      For example, nameField value is = "male" and "female" for two wedges of pie chart, that is fine.

       

      But

      Legend control renders "male" and "female" as well, takes the values from the same nameField.

      How can i change those dynamic values at runtime? is there any legend label function or something?