At Rain I have the privilege of working with some of the most talented designers in the industry. They often dream up new ways to visualize data. While it’s exciting to see what they come up with, it’s also kind of daunting from time-to-time because I have to figure out a way to build these views/components!

Recently I had the challenge of trying to implement a pie chart which changed its innerRadius whenever a wedge in the chart was rolled over. The designer wanted it to grow and animate to that new radius.  Essentially they wanted something kinda like this:

Selected index's inner radius changes when rolled over

Selected index's inner radius changes when rolled over

I immediately cringed a little bit because although the charting components are extremely powerful, they can also be very difficult to extend.  So I started refreshing my mind on how the charting components work and spent a bit of time looking on Ely Greenfield’s site for tips (he’s the charting master of the Flex SDK team).  While I wound up building the component myself since it didn’t already exist on the intertubes, Ely’s examples showed me the proper way charting components should be extended.

In the end I wound up extending PieSeries and creating my own which I called VariableInnerRadiusPieSeries (creative right?).  The code actually wound up being much simpler that I initially thought!.  Check out the example (right click to see the source).

Tags: , ,

2 Responses


  1. Aaron Hardy on 14 Feb 2011

    Goose pimples! Nice work!

  2. JTtheGeek on 16 Feb 2011

    Pretty freaking rad! Got any ideas on how to display labels for the pieces in a nice clean way as well?


Leave your comment



Buy accutane online Michael kors handbags buy accutane online uk replica handbags Buy accutane cheap next handbags satchel handbags Damier Geant kardashian kollection Theme compat buy micardis david jones handbags adalat 30 mg designer replica replica handbags china handbags 2012 leather handbags Gucci Totes hq replica high quality replica handbags