Effects Flex



    creationComplete="init()">
    
        import mx.collections.ArrayCollection;
        import mx.charts.effects.SeriesInterpolate;
        [Bindable]
        public var items:ArrayCollection = new ArrayCollection([
            {item: 2000},
            {item: 3300},
            {item: 3000},
            {item: 2100},
            {item: 3200}
            ]);
        public var rearrangeData:SeriesInterpolate;
        public function init():void {
            rearrangeData = new SeriesInterpolate();
            rearrangeData.duration = 1000;
            rearrangeData.minimumElementDuration = 200;
            rearrangeData.elementOffset = 0;
            // Apply the effect as a style.
            mySeries.setStyle("showDataEffect", "rearrangeData");
        }
        public function addDataItem():void {
            // Add a randomly generated value to the data provider.
            var n:Number = Math.random() * 3000;
            var o:Object = {item: n};
            items.addItem(o);
        }
      

    
        
            
                                    displayName="Quantity" showDataEffect="rearrangeData" />