Chart Flex


    
    xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
    creationComplete="addButterfly()" height="600">
  
    import mx.collections.ArrayCollection;
        import mx.collections.ArrayCollection; 
        import mx.graphics.SolidColor; 
        import mx.charts.GridLines; 
        import mx.charts.ColumnChart; 
        [Embed(source="a.jpg")] 
        public var butterfly:Class; 
        public function addButterfly():void { 
            var b:Object = new butterfly(); 
            b.alpha = .2; 
            myChart.backgroundElements = [ b ]; 
        } 
    [Bindable]
    public var expenses:ArrayCollection = new ArrayCollection([
      {month:"Jan", profit:20, expenses:15, amount:145},
      {month:"Feb", profit:1, expenses:2, amount:60},
      {month:"Mar", profit:15, expenses:5, amount:3}
      ]);
      

    
        
    

    
        
            
        

                    showDataTips="true">
            
                
            

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