Interacting with Charts


Like all elements in Flash Player, charts have a rich set of interactions that can be easily integrated into an application. Among the elements easily implemented are showing data tips as users mouse over elements of the charts, as well as enabling users to click elements in the chart to effect other changes throughout the application.

Mouse Over Events

Mouse over events are incredibly useful and simple to implement. All charts inherently support a property called showDataTips. By setting this to true for a chart, a ToolTip-type element will appear, showing more data about the element the user is mousing over.

Click Events

Another easy to implement interaction is by handling a click event. In this next exercise, you will add data tips to the type and sales charts, and enable users to filter the type and comparison charts by category when the user clicks a slice of the pie chart.




Adobe Flex 2.Training from the Source
Adobe Flex 2: Training from the Source
ISBN: 032142316X
EAN: 2147483647
Year: 2006
Pages: 225

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net