O'Reilly logo

ActionScript Graphing Cookbook by Peter Backx, Dominic Gélineau

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Automatic updates

In this recipe we are going to create a quotes graph that shows the value of an action, in this case the Google action, for one day. Every minute the graph is going to update itself and the update is going to be animated.

Getting ready

Open the files downloaded from the Packt Publishing website, look into the Chapter 7 | recipe 3 folder and follow along.

How to do it...

The following are the steps required to build this graph:

  1. Get the HorizontalAxis and VerticalAxis class from the Drawing a bar chart with Flex recipe in Chapter 3, Creating Bar Charts.
  2. In HorizontalAxis.as, remove the labels; we won't be needing them.
  3. In VerticalAxis.as, add minimumValue as a parameter. This axis is not going to start at 0 for this recipe but at the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required