In this recipe we focus on enriching the data display itself. When the user puts the mouse cursor over one of the points, we want to emphasize that point and show a small popup that displays more information about that point.
For example, we display the exact coordinates, but in a real-life application, you may want to show many other types of information. For instance, in a map display, you can show more information on the location that's beneath the cursor. In a results display, you might only show the average results, but when hovering over a point, you can also show the highest and lowest values.
We will start from the class that we have seen many times before:
package com.graphing.hover { import flash.display.Sprite; import com.graphing.PointGraph; public class Recipe3 extends Sprite { private var _graph:PointGraph; private var _data:Array = [[0, 20], [50, 70], [100, 0], [150, 150], [200, 300], [250...