Chart Flex



  
  @namespace mx "http://www.adobe.com/2006/mxml";
      mx|ColumnChart {
         fontFamily:Georgia;
         fontSize:18;
         color: #0000FF;
         chartSeriesStyles: mySeries1, mySeries2;
     }
     .mySeries1 {
        fill: #D2691E;
     }
     .mySeries2 {
        fill: #0000CD;
     }
    

  
     import mx.collections.ArrayCollection;
     [Bindable]
     public var myArray:ArrayCollection = new ArrayCollection([
        {Country:"A", GDP:11},
        {Country:"B", GDP:22},
        {Country:"C", GDP:33},
        {Country:"D", GDP:44}
     ]);
     [Bindable]
     public var myArray2:ArrayCollection = new ArrayCollection([
        {Country:"A", GDP:33},
        {Country:"B", GDP:22},
        {Country:"C", GDP:11},
        {Country:"D", GDP:44}
     ]);

  
     
        
           
        

        
                           dataProvider="{myArray}"
                yField="GDP"
                xField="Country"
                displayName="Array"
           />
                           dataProvider="{myArray2}"
                yField="GDP"
                xField="Country"
                displayName="Array2"
           />