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

Chapter 7. Animating a Graph

In this chapter, we will cover:

  • Animating between two data sets
  • Animating a meter
  • Automatic updates
  • Zooming in on specific data set
  • Animating subway locations

Introduction

In this chapter we will explore how to animate graphs. We will start by revisiting graphs that we have seen in the previous chapters (bar chart, meter, line chart, and so on) and follow by showing original recipes. Three techniques will be shown, using an enter frame listener to modify a property, using the TweenLite library (TweenLite has been chosen as an animation library for this book because it is the most used and the fastest library out there; it even has a JavaScript port that performs quite well) for animation and finally erasing and redrawing ...

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