I tried in this way...
result is an arraycollection containing data to be display, "Field
Name" and Count are the fields in arraycollection

 
var a:Array=new Array();
                                                                        var 
chart:BarChart=new BarChart();
                                                                        
chart.dataProvider=result;

                                                                        var 
vaxis:CategoryAxis=new CategoryAxis();
                                                                        
vaxis.categoryField="Field Name";
                                                                        
vaxis.dataProvider=result;
                                                                        
chart.verticalAxis=vaxis;
                                                                        
//chart.verticalAxis="Field Name";
                                                                        
//chart.horizontalAxis="Count";

                                                                        var 
se:BarSeries=new BarSeries();
                                                                        
se.yField="Field Name";
                                                                        
se.xField="Count";
                                                                        
a.push(se);
                                                                        
chart.series=a;

On Apr 14, 11:16 am, Akhil Agrawal <[email protected]> wrote:
> Hi all,
> I have to draw a bar chart through action script at run time how can i
> do this. I tried but unable to display data (bars)
> I have data as arraycollection,
>
> thanx
>
> Regards
> ak
   hil agrawal
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to