Home | AJAX Demos | Java Demos | AJAX Graphics Server | Products

GLG Graphics Server: AJAX Graph Selection Demo


Click on the graph to display selected values or move the mouse over it for tooltips.


Loading Image...

Custom Label:
Servlet's Source Code        Servlet's Image URL

This demo demonstrates the use of the Graphics Server's object selection capabilities to display graph tooltips on MouseOver and pop up dialogs with detailed information on the mouse selection.

When a user moves the mouse over the graph's datasample, a tooltip showing a load of the selected server is displayed. When a user clicks on the graph's datasample, a dialog with the server load information for the selected month is activated.

Since the object selection is processed on the server side, with no image maps defined in HTML on the client side, selection works when the graph image is resized or the graph is updated with new data. The server-side selection processing scales to accommodate a large number of objects with no performance penalty associated with defining a large number of image maps in the browser.

The graph image of the requested size is generated on the server side using the GLG Graphics Server in the form of a servlet. The size of the graph image is specified using the width and height parameters of the URL. Click here to display the graph's URL directly to see its parameters.

The graph servlet is self-contained and may be reused as a component on multiple web pages. The AJAX Dashboard Demo uses this servlet to render the graph as a component of a larger dashboard. The servlet's source code is provided and may be further customized if required.

The data displayed in the graph is supplied by the servlet from a datasource on the server side. The "Label:" entry field demonstrates how to supply servlet parameters for the graph from HTML.

The graph servlet loads the graph drawing just once and reuses it between all servlet instances and threads. This reduces consumption of the JVM heap space, increases the speed of an image generation and decreases the server load.


Home | AJAX Demos | Java Demos | AJAX Graphics Server | Products