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 5. Adding Interaction

In this chapter, we will cover:

  • Zooming and panning around a graph
  • Sending data updates to the graph
  • Making the points interactive: Hovering
  • Selecting data points in the graph
  • A dynamic graph based on an editable table
  • Dragging data points to new values
  • Linking graphs

Introduction

Now that we know how to draw graphs, it's time to look at one of ActionScript's strengths: interacting with the user. In this chapter, we'll see many ways you can give the user control over the graph.

You will notice that this is only a starting point. There are so many options and so many ways to interact with a graph, it would be impossible to describe them all. An application such as Google Maps demonstrates many of the different ways:

  • Drag 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