Pie Label position callout
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
import mx.collections.ArrayCollection;
[Bindable]
public var myArray:ArrayCollection = new ArrayCollection([
{Country:"A", GDP:1},
{Country:"B", GDP:6},
{Country:"C", GDP:4},
{Country:"D", GDP:2},
{Country:"E", GDP:3}
]);
</mx:Script>
<mx:Panel title="Pie Chart">
<mx:PieChart id="myChart" dataProvider="{myArray}" showDataTips="true">
<mx:series>
<mx:PieSeries field="GDP" nameField="Country" labelPosition="callout"/>
</mx:series>
</mx:PieChart>
<mx:Legend dataProvider="{myChart}"/>
</mx:Panel>
</mx:Application>
Related examples in the same category