Chapter 8. Charting with Degrafa

 

This chapter covers

  • Introducing the Degrafa drawing library
  • Creating a custom PieChart component
  • Creating an ItemRenderer for a DataGrid
  • Dynamic object creation

Now that your application is secured and communicating with the server side, it’s time to add data visualization components and enable a bird’s-eye view on the data. Adding data visualization components to your application allows people to see at a glance the open project issues and the number of bugs versus the number of feature requests, without having to manually count them in the data grid in the master view. The data could be visualized in many ways—we’ll only scratch the surface in this chapter.

Adobe provides data visualization components, but only when you purchase a license for the professional version of the Flash Builder IDE. Because our goal is to do Flex development using only free and open source technologies, we’ve decided to create our own visualization components—besides, it’s more fun.

8.1. Drawing in Flex

8.2. Common Degrafa concepts

8.3. Creating a pie chart for fun and profit

8.4. Adding your pie chart to the application

8.5. Beyond the example

8.6. Summary