The following example shows how you can customize the callout stroke in a Flex PieChart control by using the PieSeries class’s calloutStroke style and the mx.graphics.Stroke class, as seen in the following snippet:
<mx:PieChart dataProvider="{dp.product}" height="250" width="100%">
<mx:series>
<mx:PieSeries id="pieSeries" field="@data">
<mx:calloutStroke>
<mx:Stroke color="black"weight="2" />
</mx:calloutStroke>
<mx:filters>
<mx:Array />
</mx:filters>
</mx:PieSeries>
</mx:series>
</mx:PieChart>
To see an example of changing the stroke around the pie chart itself, see “Customizing strokes in a Flex PieChart control”.
Full code after the jump.
Continue reading ‘Customizing callout strokes in a Flex PieChart control’



