Mega Code Archive
Use SeriesSlide effect to make the data slide in and out
import mx.collections.ArrayCollection;
[Bindable]
public var expenses1:ArrayCollection = new ArrayCollection([
{Month:"Jan", Income:2000, Expenses:1500},
{Month:"Feb", Income:1000, Expenses:200},
{Month:"Mar", Income:1500, Expenses:500}
]);
[Bindable]
public var expenses2:ArrayCollection = new ArrayCollection([
{Month:"Jan", Income:1200, Expenses:800},
{Month:"Feb", Income:2500, Expenses:300},
{Month:"Mar", Income:575, Expenses:490}
]);
public function changeProvider():void {
myChart.dataProvider=expenses2;
}