Chart Flex



  
     import mx.collections.ArrayCollection;
     import mx.charts.events.ChartEvent;
     import mx.controls.Alert;
     [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}
     ]);
     private function chartEventHandler(event:ChartEvent):void {
        Alert.show("Event of type: " +event.type,"ChartEvent",Alert.OK);
    }

  
              chartDoubleClick="chartEventHandler(event)">