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

Graphing tabular data in 3D

In this recipe, we expand on drawing in multiple dimensions. For now, we've only shown a 2D graph translated to 3D. Now we will show how to draw two separate data sets and get a real three-dimensional graph.

Getting ready

Start by creating a copy of the Moving around the chart recipe. This will be the basis for the current recipe.

Now replace the data set with the following one:

private var _data:Array = [[0, 20, 40], [50, 70, 60], [100, 0, 10], [150, 150, 170], 
[200, 300, 280], [250, 200, 210], [300, 400, 350], [350, 20, 50],
[400, 60, 70], [450, 250, 230], [500, 90, 110], [550, 400, 350],
[600, 500, 400],[650, 450, 380],[700,320, 350]];

It's basically the same set as before, plus an additional one.

How to do it...

The current ...

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