3 Replies Latest reply on Jul 31, 2007 11:02 PM by abudahim

    how i can change bar chart color in runtime??

    abudahim
      i have a bar chart with red as a default color.

      <mx:BarSeries
      id="progressBar"
      yField="Task_Name"
      minField="Start_Date"
      xField="Progress_Date"
      displayName="Progress"
      >

      <mx:fill>
      <mx:SolidColor id="progressColor" color="red"/>
      </mx:fill>

      i want to give the user the option to change the color. i used the following code:

      progressColor.color = colorChooser.selectedColor;

      colorChooser is color picker components.
      but that doesn't work. it doesn't change the color. it just changes the tooltip border color of the bar chart.

      please help
      thanks