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] 
        public var profit04:ArrayCollection = new ArrayCollection([ 
            {Month:"Jan", Profit:2000}, 
            {Month:"Feb", Profit:1000}, 
            {Month:"Mar", Profit:1500} 
        ]); 
        [Bindable] 
        public var profit05:ArrayCollection = new ArrayCollection([ 
            {Month:"Jan", Profit:2200}, 
            {Month:"Feb", Profit:1200}, 
            {Month:"Mar", Profit:1700} 
        ]); 
        [Bindable] 
        public var profit06:ArrayCollection = new ArrayCollection([ 
            {Month:"Jan", Profit:2400}, 
            {Month:"Feb", Profit:1400}, 
            {Month:"Mar", Profit:1900} 
        ]); 
      

    
        
    

    
        
            
        

        
            
                                    categoryField="Month" />
            

            
                                    xField="Month" displayName="2004" />
                                    xField="Month" displayName="2005" />
                                    xField="Month" displayName="2006" />