Chart Flex


    
    xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
    height="600">
     
         
        import mx.collections.ArrayCollection; 
        [Bindable] 
        public var expenses:ArrayCollection = new ArrayCollection([ 
            {Month:"Jan", Profit:2000, Expenses:1500, Amount:450}, 
            {Month:"Feb", Profit:1000, Expenses:200, Amount:600}, 
            {Month:"Mar", Profit:1500, Expenses:500, Amount:300} 
        ]); 
        [Bindable] 
        public var expenses2:ArrayCollection = new ArrayCollection([ 
            {Month:"Jan", Profit:2400, Expenses:1509, Amount:950}, 
            {Month:"Feb", Profit:3000, Expenses:2200, Amount:400}, 
            {Month:"Mar", Profit:3500, Expenses:1200, Amount:200} 
        ]); 
        [Bindable] 
        public var dp:ArrayCollection = expenses; 
        public function changeDataProvider():void { 
            if (dp==expenses) { 
                dp = expenses2; 
            } else { 
                dp = expenses; 
            } 
        } 
      
    

    
        
    

    
        
            
        

                    showDataTips="true">