If the type on a bar chart is set to 'stacked' or '100%' the bars do 
not show up at all.  Works fine on a column chart.



<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
backgroundColor="#FFFFFF">
    <mx:Script>
        <![CDATA[          
         private var Medals:Array =
         [
            { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
            { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
            { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 }
         ];                  
    ]]>
    </mx:Script>
    <mx:Panel title="Column and Bar Chart Panel" height="100%" 
width="100%">
            <mx:BarChart id="bar" paddingLeft="5" height="100%" 
type="stacked"
                width="45%" paddingRight="5" dataProvider="{Medals}" 
showDataTips="true">
                <mx:verticalAxis>
                    <mx:CategoryAxis dataProvider="{Medals}" 
categoryField="Country"/>
                </mx:verticalAxis>
                <mx:series>
                    <mx:Array>
                        <mx:BarSeries yField="Country" xField="Gold" 
displayName="Gold"/>
                        <mx:BarSeries yField="Country" 
xField="Silver" displayName="Silver"/>
                        <mx:BarSeries yField="Country" 
xField="Bronze" displayName="Bronze"/>
                    </mx:Array>
                </mx:series>
            </mx:BarChart>
            <mx:Legend dataProvider="{bar}"/>
    </mx:Panel>
</mx:Application>





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

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

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