[flexcoders] BarChart bug f2b3

2006-06-15 Thread pasflex
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=#FF
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/
 





RE: [flexcoders] BarChart bug f2b3

2006-06-15 Thread Ely Greenfield








I tried your sample against the SDK mainline, and the bars 
are showing up fine. So it looks like it's been fixed 
already.

Ely.



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of pasflexSent: 
Thursday, June 15, 2006 3:55 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] BarChart bug 
f2b3


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="#FF"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:Scriptmx: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:verticalAxismx:CategoryAxis 
dataProvider="{Medals}" 
categoryField="Country"//mx:verticalAxismx:seriesmx:Arraymx: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:BarChartmx:Legend 
dataProvider="{bar}"//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
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___