Here I am posting code... It's not working for me.. I am not getting multiple color to single area series... Please help...
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> <![CDATA[ import mx.charts.series.items.AreaSeriesItem; import mx.charts.ChartItem; import mx.graphics.IFill; import mx.collections.ArrayCollection; [Bindable] public var expenses:ArrayCollection = new ArrayCollection([ {Month:"Jan", Profit:2000, Expenses:1500, Amount:450}, {Month:"Feb", Profit:1000, Expenses:200, Amount:600}, {Month:"Mar", Profit:1500, Expenses:500, Amount:300}, {Month:"Apr", Profit:1600, Expenses:800, Amount:400} ]); /* public function myFillFunction(item:ChartItem, index:Number):IFill { var curItem:AreaSeriesItem = AreaSeriesItem(item); return(new SolidColor(0x123456, .75)); } */ ]]> </mx:Script> <!--<mx:Style> AreaSeries{ fills: #FF0033, #FF3333, #CC66FF; } </mx:Style>--> <mx:Panel title="Area Chart"> <mx:AreaChart id="myChart" dataProvider="{expenses}" showDataTips="true"> <mx:horizontalAxis> <mx:CategoryAxis dataProvider="{expenses}" categoryField="Month" /> </mx:horizontalAxis> <mx:series> <mx:AreaSeries yField="Profit" displayName="Profit"> <mx:fills> <mx:SolidColor color="0xCC66FF"/> <mx:SolidColor color="0x9966CC"/> <mx:SolidColor color="0x9999CC"/> </mx:fills> </mx:AreaSeries> </mx:series> </mx:AreaChart> </mx:Panel> </mx:Application> On Mar 25, 5:38 pm, [email protected] wrote: > Post your code sample! > > On Thu, Mar 25, 2010 at 7:37 AM, pramod ingole > <[email protected]>wrote: > > > hi saurabh, > > i tried by both ways but it did not work for me... > > can you post working sample code... > > > Thanks > > pramod > > > On Mar 23, 11:01 pm, saurabh goel <[email protected]> wrote: > > > Hi, > > > > You can apply this by 2 ways, > > > > 1- there are a property of Area series in which u can define the colors > > of > > > array. > > > 2- you can apply mulitple colours in rendere based on conditions. > > > > Regards > > > saurabh > > > > On Tue, Mar 23, 2010 at 8:41 PM, pramod ingole > > > <[email protected]>wrote: > > > > > Hi All, > > > > > i want to apply multiple color to single area series... > > > > how to do this...? > > > > i am also sending sample image, please check it.. > > > > > please help... > > > > > Thanks in advance.. > > > > Pramod Ingole. > > > > > -- > > > > 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]<flex_india%[email protected]> > > <flex_india%[email protected]<flex_india%[email protected]> > > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/flex_india?hl=en. > > > -- > > 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]<flex_india%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/flex_india?hl=en. -- 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.

