Hi Ely, sorry for not being clear.
below is the code that is supposed to display a stacked bar chart. 
instead it displays a single bar with no stacking.

when i hange the type attribute of bar chart to "clustered", it 
displays the clustered bar chart just fine.

only thing i did different from normal stacked bar is removed values 
for Silver and Bronze for USA from medalsAC array collection and 
added mySilver a value > 100.

please let me know, if u need more info. thanks for you 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 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to