Chapter 16. Charting
The Flex Charting Framework is a powerful series of data-rich
controls that let you create deep and interactive displays of many types
of data. Flex defines a few of the most commonly used charts—bar charts,
pie charts, and column charts—and gives you a great deal of control over
their appearance. A
Chart contains a
ChartSeries that creates the item renderers based on the
passed to the
ChartSeries object can use an
itemRenderer, have distinct
dataProvider used to display data
ChartSeries, use display effects, and have distinct properties set to handle
user interaction. The Flex Charting Framework is an immense topic, and as
such the recipes in this chapter can cover only a small set of the
possibilities. It should also be noted that the Flex Charting components
are a part of the Flex data visualization package, which is included in
the Flex professional edition and not in the standard edition nor with the
free Flex 3 SDK.
16.1. Create a Chart
You want to add a chart to your application.
Create a chart of the desired type and add the appropriate
ChartSeries object for that
then add a
dataProvider to the
Charts come in a variety of types, and it’s important to know what you have in your toolbox before starting to work.
For every chart type, there is a corresponding
ChartSeries. To add a series of data visualized as a particular type, you add the corresponding series ...