Data Model Flex


    
    xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
    height="600">
     
        import mx.collections.ArrayCollection; 
        [Bindable] 
        private var expenses:Array = [ 
            {Month:"January",Profit:2000,Expenses:1500,Amount:450}, 
            {Month:"February",Profit:1000,Expenses:200,Amount:600}, 
            {Month:"March",Profit:1500,Expenses:500,Amount:300}, 
            {Month:"April",Profit:500,Expenses:300,Amount:500}, 
            {Month:"May",Profit:1000,Expenses:450,Amount:250}, 
            {Month:"June",Profit:2000,Expenses:500,Amount:700} 
        ]; 
      

    
        
    

    
        
            
        

                    showDataTips="true">
            
                                    categoryField="Month" />
            

            
                                    displayName="Profit" />
                                    displayName="Expenses" />