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

Zooming in on a specific data set

In this recipe we are going to build a stacked area chart and allow the user to zoom in on a specific portion of it. You can view the stacked area chart as a pie chart over time. We are going to replicate the behavior of the graphics found on this page http://flare.prefuse.org/apps/job_voyager, but in a simplified manner.

Zooming in on a specific data set

Getting ready

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

How to do it...

The following are the steps to create the animated stacked area chart:

  1. Create AnimatedAreaChartData.as to hold your data.
  2. Copy over HorinzontalAxis.as ...

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