Flex Custom Column Chart ItemRenderer
February 22nd, 2009
I’ve spend a lot of time lately trying to figure out how to draw on chart components and how to use Degrafa (graphics framework for Flex). I thought it’d be cool to have a column chart change colors programmatically based on its value.
This example demonstrates how to:
- Createa custom ItemRenderer and apply it to a series
- Use Degrafa to convert numbers to a color in the spectrum
- Convert pixel to chart coordinates to smoothly change column colors
See the example below, more code and comments after the break (right click to view source):