@namespace mx "http://www.adobe.com/2006/mxml";
mx|PieChart{
font-size:12;
font-weight:bold;
}
import mx.charts.series.PieSeries;
import mx.charts.PieChart;
private function initApp():void
{
var series:PieSeries = new PieSeries();
series.field="sales";
series.labelField="fruit";
series.explodeRadius=.01;
series.setStyle("labelPosition", "inside");
var chart:PieChart = new PieChart();
chart.visible=true;
chart.dataProvider=salesData;
chart.percentWidth=100;
chart.percentHeight=100;
chart.series=[series];
addChild(chart)
}
A
3
B
2
C
4