1 Reply Latest reply on Dec 27, 2010 8:32 AM by Tanu Jain

    Chart series can't change color

    Benoitcn Level 1

      I create different type series in the series block only the columnserie can affect my specified color.

      The other two serie only use the default color. The color like this:

       

      <mx:ColumnChart id="myChart4" width="527" height="178"
             showDataTips="true" dataProvider="{monthly_data}">
      
          <mx:series>
           <mx:ColumnSeries dataProvider="{monthly_data}" yField="lian" displayName="立案数量">
            <mx:fill>
             <s:SolidColor color="0x7c00db" />
            </mx:fill>
           </mx:ColumnSeries>    
           <mx:LineSeries dataProvider="{monthly_data}" yField="huanbi" displayName="环比" >
            <mx:fills>
             <s:LinearGradient rotation="130">
              <s:GradientEntry color="0x808080" alpha=".8" />
              <s:GradientEntry color="0xa1920e" alpha=".6" />
             </s:LinearGradient>
            </mx:fills>
           </mx:LineSeries>
           <mx:LineSeries dataProvider="{monthly_data}" yField="tongbi" displayName="同比" >
            <mx:stroke>
             <s:SolidColorStroke color="0xee77aa" alpha=".9" />
            </mx:stroke>
            <mx:fill>
             <s:SolidColor color="0x3218e2" alpha="0.4"/>
            </mx:fill>
            <mx:verticalAxis>
             <mx:LinearAxis id="v5" labelFunction="defineVerticalLabel" />
            </mx:verticalAxis>    
           </mx:LineSeries>
          </mx:series>
      
      </mx:ColumnChart>