You're pretty close: 

var chart:BarChart=new BarChart(); // based on your xField/yField names,
I'm betting you want a column chart (vertical) and not a bar chart
(horizontal).

chart.type="overlaid";           
var bseries:BarSeries=new BarSeries();
bseries.barWidthRatio=0.65; // this won't have any effect...a BarChart
manages the sizes of the series inside it.
bseries.xField="ACTIVITY_NAME";
bseries.yField="TTL_HOURS";
                
                
var series:Array=new Array();
series.push(bseries);
               
chart.applySeriesSet(series,new DataCanvas()); // this won't work.
Instead you want 'chart.series = series;'

chart.height=400;
chart.width=400;
chart.showDataTips=true;

You need to of course assign a dataProvider:

Chart.dataProvider = someDataSource;

. Also, based on your 'xField' value, I'm betting you want to use a
cateogry axis on your horizontal:

Var ca:CategoryAxis = new CategoryAxis();
ca.dataProvider = someDataSource;
ca.categoryField = "ACTIVITY_NAME";
Chart.horizontalAxis = ca;

Ely.







------------------------ Yahoo! Groups Sponsor --------------------~-->
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/WpTY2A/izNLAA/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



 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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