See if this entry that I posted while ago on the Flex cookbook helps
you...
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails\
&postId=2021&productId=2
<http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetail\
s&postId=2021&productId=2>
<http://holaflex.ocortes.com>
--- In [email protected], haiqing <[EMAIL PROTECTED]> wrote:
>
> Can somebody help here? I want verticalAxis display different colors
for a single BarSeries. When I tried to use "setStyle" it does not work.
Is it doable?
>
> Thanks,
> hq.
>
> ----- Original Message ----
> From: haiqing7 [EMAIL PROTECTED]
> To: [email protected]
> Sent: Sunday, April 15, 2007 9:59:53 AM
> Subject: [flexcoders] Help! How can I display different colors for one
BarSeries?
>
> here is part of my sample code and it can only display one color for
> one BarSeries:
>
> var ls:BarSeries = new BarSeries();
> var colorArray:Array = [0x299C39, 0xFF3118];
> var st:String;
> if(st == "pass"){
> ls.setStyle( "fill",colorArra y[0]);
> }else{
> ls.setStyle( "fill",colorArra y[1]);
> }
> currentSeries. push(ls);
>
> thanks in advance.
> hq.
>