Data Model Flex




    
        import mx.collections.ArrayCollection; 
        [Bindable] public var expenses:ArrayCollection = new ArrayCollection([ 
           {Expense:"Taxes",Amount:2000, Cost:321,Discount:131}, 
           {Expense:"Rent", Amount:1000, Cost:95, Discount:313}, 
           {Expense:"Bills", Amount:100, Cost:478,Discount:841} ]);
    

    
        
            
                                    categoryField="Expense" />
            

            
                
                
                                    displayName="Discount (in $USD)" />