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 the graph's every frame.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.17.75.227