Variable Radius Pie Chart.
This sample shows how to extend the capabilities of the PieSeries class from the Flex Charting Package. It’s a good tutorial for how to extend any of the built in classes, and a good reference to start thinking about building your own series type from scratch.
In this example, we extend the built in PieSeries to use the underlying data to determine both the size of the wedge, as a typical PieSeries does, as well as the radius of the wedge. The New series goes through all the steps a Chart Series must to convert data from an underlying data provider to a value that can be used rendering on screen.
Notes:
- This was a quick one off example I put together, so it probably has some issues in it. Specifically, if you turned on callout labels for this series, they wouldn’t draw all thew way in for the smaller wedges. Consider it an exercise for the reader ;)
* Variable Radius Pie Chart
* view source
* download source
Feedback or thoughts on this example, as well as requests for other examples you’d like to see, are much appreciated. Leave comments, suggestions, criticisms here.