3 Replies Latest reply on May 17, 2007 7:23 AM by romanczar

    PieSeries color problems

    blah_
      Hello,

      I have a little problem. I use a XML file to get data to generate a PieSeries.
      All my code work.
      But i would like to use one more data from my XML file to define the color of each columns.
      How can i do it ?


      Actually i have this result :
      Column 0 : bananas from affrica 2003 => dark red
      Column 1 : bananas from affrica 2007 => red

      Column 2 : bananas from europe 2003 => dark red
      Column 3 : bananas from europe 2007 => red


      So i would like this result :

      Column 0 : bananas from affrica 2003 => dark red
      Column 1 : bananas from affrica 2007 => red

      Column 2 : bananas from europe 2003 => dark BLUE <============= different colour but the
      Column 3 : bananas from europe 2007 => BLUE <============= it's the same balise (but the next "variable" in my xml file )



      In my mxml code i have this line :

      quote:

      <mx:ColumnSeries yField="list_result_percent" showEffect="WipeRightUp" resizeEffect="WipeRightUp">
      <mx:fill>
      <mx:SolidColor color="#CC8888" />
      </mx:fill>
      </mx:ColumnSeries>


      But i would something like that :

      quote:

      <mx:ColumnSeries yField="list_result_percent" showEffect="WipeRightUp" resizeEffect="WipeRightUp">
      <mx:fill>
      <mx:SolidColor color="my_color" /> => the color from the xml file
      </mx:fill>
      </mx:ColumnSeries>




      How can i do that ? :/


      I'm looking forward to hearing from you.

      Regards