flash on 2010-4-14
/**
* Copyright kihon ( http://wonderfl.net/user/kihon )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/lDAp
*/
package
{
import flash.display.Sprite;
import com.bit101.charts.*;
public class Main extends Sprite
{
public function Main()
{
var data:Array = [10, 20, 30, 40, 100, 40, 30, 20, 10];
var bar:BarChart = new BarChart(this, 50, 20, data);
var pie:PieChart = new PieChart(this, 50, bar.height + 20, data);
var line:LineChart = new LineChart(this, 50, pie.y + pie.height + 20, data);
line.showScaleLabels = bar.showScaleLabels = pie.showScaleLabels = true;
}
}
}