hi amruta
1) use fill in your series like
<mx:fill>
<mx:SolidColor color="#00FF00"/>
</mx:fill>
2)use fillfunction in series ,it change color based on certain condition
let me know the feedback
private function myColFillFunction(element:ChartItem, index:Number):IFill
{
var c:SolidColor = new SolidColor(0x00FF00);
var item:ColumnSeriesItem = ColumnSeriesItem(element);
var profit:Number = Number(item.xValue);
if (profit>0) {
return c;
}
else {
c.color = 0xFF0000;
}
return c;
}
On 12/9/09, Amruta Kulkarni <[email protected]> wrote:
> Hi All
>
> I have an application in which i am creating stacked column chart at run
> time.I want to assign distinct color to each column series(The number of
> coulmn series are also dynamic).
> Can anyone suggest me how this can be done?
> Thanks in advance
>
> Regards
> -Amruta
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>
>
--
Best Regards
Baskaran.R
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.