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 
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