Hi, The example you gave is very good. I solved the issue. Thank you. Thanks a lot for the reply. And i do want to ask onething. I wanna do Flex certification, is it easy or hard. But i just know the basics of Flex. And what are the resources used And how the learning path should be for doing the certification.
Thanks in Advance, Poornima ________________________________ From: Brendan Meutzner <[email protected]> To: [email protected] Sent: Tuesday, March 17, 2009 7:36:25 PM Subject: Re: [flexcoders] Flex charting The bottom example at this link with the BarChart with two different typed series... is this what you're looking for? (assuming that instead of one regular and one stacked, they'd both be stacked).... http://livedocs. adobe.com/ flex/201/ html/wwhelp/ wwhimpl/common/ html/wwhelp. htm?context= LiveDocs_ Book_Parts&file=charts_ formatting_ 110_46.html Brendan On Tue, Mar 17, 2009 at 8:58 AM, Brendan Meutzner <bmeutz...@gmail. com> wrote: Poornima, I now see what you mean... sorry, didn't read carefully enough the first time (or look at screenshot :)... What you're looking for doesn't fit the logic with a 100% graph you realize. If I understand correctly, you want a stacked column series which contains two items for each point on the horizontal axis... one with Expenses+Profit and one with Expenses+Loss. .. doing this won't cause them to add to 100%. Am I correct in understanding your problem? If yes, let me know and we can figure it out. Brendan On Tue, Mar 17, 2009 at 2:27 AM, kotha poornima <poorni_agile@ yahoo.com> wrote: Hi, No, I want full 100% graph with 2 colors in one bar and another 2 colors in one bar for the same key. I hope u got my point. Thanks and Regards, Poornima ________________________________ From: Brendan Meutzner <bmeutz...@gmail. com> To: flexcod...@yahoogro ups.com Sent: Tuesday, March 17, 2009 11:55:35 AM Subject: Re: [flexcoders] Flex charting <mx:ColumnChart type="stacked"> On Mon, Mar 16, 2009 at 10:48 PM, kotha poornima <poorni_agile@ yahoo.com> wrote: Hi, Please find the code below. <?xml version="1.0"?> <!-- charts/BasicColumn. mxml --> <mx:Script><![CDATA[ import mx.collections. ArrayCollection; [Bindable] public var expenses:ArrayColle ction = new ArrayCollection( [ {Month:"Jan", Profit:2000, loss:200, Expenses:1500} , {Month:"Feb", Profit:1000, loss:200, Expenses:200} , {Month:"Mar", Profit:1500, loss:200, Expenses:500} ]); ]]></mx:Script> <mx:Panel title="Column Chart"> <mx:ColumnChart id="myChart" dataProvider="{expenses}" type="100%"> <mx:horizontalAxis> <mx:CategoryAxis dataProvider="{expenses}" categoryField="Month" /> </mx:horizontalAxis> <mx:series> <mx:ColumnSeries xField="Month" yField="Profit" displayName="Profit"/> <mx:ColumnSeries xField="Month" yField="Expenses" displayName="Expenses"/> <mx:ColumnSeries xField="Month" yField="loss" displayName="Loss"/> <mx:ColumnSeries xField="Month" yField="Expenses" displayName="Expenses"/> </mx:series> </mx:ColumnChart> <mx:Legend dataProvider="{myChart}"/> </mx:Panel> </mx:Application> Thanks in Advance, Poornima ________________________________ From: duraibalaji <duraibalaji@ yahoo.com> To: flexcod...@yahoogro ups.com Sent: Monday, March 16, 2009 8:00:52 PM Subject: Re: [flexcoders] Flex charting Hi Poorni, Can you post the code, let me try to modify the same and send it to you. Regards DB kotha poornima wrote: > > Hi All, > > I have one arraycollection like this: > > public var expenses:ArrayColle ction = new ArrayCollection( [ > {Month:"Jan" , Profit:2000, loss:200, Expenses:1500} , > {Month:"Feb" , Profit:1000, loss:200, Expenses:200} , > {Month:"Mar" , Profit:1500, loss:200, Expenses:500} > ]); > > With this iam drawing a column chart. > so i added two column series one for profit and one for expenses. So i got > output like for the first key two lines came orange and green one for > profit and one for expenses. > > But i want to combine these two lines so i put type="100%" > With this iam getting green and orange in the same line with values > adjusted to 100%. > > Up to this its working fine. > But now i want another series for the same key with loss and expenses. > However if i add these two series to the chart iam still getting one line > with 4 colors. But i want profit and expenses with type="100%" in one line > and loss and expenses in one line with type="100%" for one key.(Shown in > the attachment "type1.bmp") . Please help me guys!!! > > Thanks in Advance, > Poornima > > > > > > -- View this message in context: http://www.nabble. com/Flex- charting- tp22534734p22539 460.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Brendan Meutzner http://www.meutzner.com/blog/ http://www.riajobs. com -- Brendan Meutzner http://www.meutzner .com/blog/ http://www.riajobs. com -- Brendan Meutzner http://www.meutzner .com/blog/ http://www.riajobs. com

