Although we are having a argument about Will HTML5 + CSS + JavaScript Really Be Flash And Silverlight Killer?, however, a simply undeniable fact is that flex applications are used widely.Especially dashboard, reporting, analytics, statistical, financial or any other data visualization.
We can use the PieChart control to define a standard pie chart, but you probably make your applications cooler effect. Try to the following chart, isn’t cool?
You can:
Demo(full window) |
Download Full Source Code
CircleChart class is the main class of pie.
CircleChart Property:
Radius:
Circle
Chart.radius = [120] or CircleChart.radius = [40,160] // * if length=1: solid, if length=2: hollow
Pie Data:
CircleChart.chartData.data = [12,34,34,34,45];
Bevel Mode:
CircleChart.bevelMode = true;
Function:
Initialization
CircleChart.init();
Fill Color
CircleChart.fillColor(color:*, index:uint);
Insert one element
CircleChart. insert(number:Number, color:*, index:uint = 0)
Remove one element
CircleChart.del(index:uint)
Draw
CircleChart.draw();
*laosafu(Chinese) is the author of this souce code, if you want to use this source code, say thanks to laosafu pls.

March 24th, 2010
Ntt.cc
Posted in
Tags: 
RSS Feed
Email Feed
Amazing effect of this as3 chart component, Many thanks, laosafu.