Home | AJAX Demos | Java Demos | Products

GLG Java Demo: Graph Feedback

This Java demo demonstrates some of the feedback features of the GLG Graphs:

  • Tracing the mouse position with either a vertical or cross-wire cursor
  • Highlighting the datasample selected with the cross-wire cursor with a different color
  • Showing the value and time stamp of the selected datasample
  • Updating the graph and selected datasample display
  • The graph updates periodically using an update timer. When the mouse moves over the graph, the datasample selected by the mouse is highlighted and a dialog showing the selected sample's data is displayed in the upper right corner of the graph. When the value of the selected datasample changes, its information in the popup window gets updated as well.

    Click here to see the Applet Source Code.



    The applet generates simulated data for updating the graph. The data can also be obtained from any Web data source, as shown in the GLG Stock Ticker and other demos.