Hi Suri. Can you give a little more detail than 'doesn't work.'?
 
Thanks,
Ely.
 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of suri_boston
Sent: Monday, September 11, 2006 11:22 AM
To: [email protected]
Subject: [flexcoders] issue with type=stacked for bar/column chart

the below code works if the type of the chart is clustered but it
doesn't work, if it is stacked. any one have a clue?

if i change mySilver value from 200 to 20, then it works. i am
guessing the autoadjust is not working in some cases.

thanks for your time,
-Suri

<?xml version="1.0"?>
<!-- Simple example to demonstrate the ColumnChart and BarChart
controls. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" >

<mx:Script>
<![CDATA[

import mx.collections.ArrayCollection;


[Bindable]
private var medalsAC:ArrayCollection = new ArrayCollection( [
{ Country: "USA", Gold: 35 },
{ Country: "China", Silver:17, mySilver:200 },
{ Country: "Russia", Bronze: 38 } ]);
]]>
</mx:Script>

<mx:Panel title="ColumnChart and BarChart Controls Example"
height="100%" width="100%" layout="horizontal">

<mx:BarChart id="column1" height="100%" width="100%"
paddingLeft="5" paddingRight="5"
showDataTips="true" dataProvider="{medalsAC}"
type="stacked">

<mx:verticalAxis>
<mx:CategoryAxis categoryField="Country"/>
</mx:verticalAxis>
<mx:series>
<mx:BarSeries xField="Silver" displayName="Silver"/>
<mx:BarSeries xField="mySilver"
displayName="mySilver"/>
<mx:BarSeries xField="Gold" displayName="Gold"/>
<mx:BarSeries xField="Bronze" displayName="Bronze"/>
</mx:series>
</mx:BarChart>

<mx:Legend dataProvider="{column1}"/>

</mx:Panel>

</mx:Application>

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to