Using SeriesInterpolate : SeriesInterpolate « Chart « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Chart » SeriesInterpolateScreenshots 
Using SeriesInterpolate
Using SeriesInterpolate
          

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    creationComplete="initTimer()">

    <mx:Script>
        
            import mx.collections.ArrayCollection;
            
            [Bindable]
            public var myCollection:ArrayCollection = new ArrayCollection();
            
            public function initTimer():void
            {
                var myTimer:Timer = new Timer(10000);
                myTimer.addEventListener(TimerEvent.TIMER, timerHandler);
                myTimer.start();
            }
            
            public function timerHandler(event:TimerEvent):void
            {
                var o:Object = {};
                o.number = Math.random() 100;
                myCollection.addItem(o);
            }
            
      
    </mx:Script>
    
    <mx:SeriesInterpolate id="interpolateIn" duration="500" />
    
    <mx:ColumnChart id="column" height="100%" width="100%" dataProvider="{myCollection}">
        
        <mx:series>
            <mx:ColumnSeries yField="number" showDataEffect="{interpolateIn}" />
        </mx:series>
        
    </mx:ColumnChart>
    
</mx:Application>

   
    
    
    
    
    
    
    
    
    
  
Related examples in the same category
w__w___w__.j__a__va2_s___.___c__om___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.