The initial graph in this case is produced by the function dograph().
The key parameter that allows additional points or text to be added after the
page is displayed is Info.maxaddpoints=50. This allows for 50 extra (hidden)
divs on the page that are associated with this graph (in case there are two or more on the page).
You then can write up to points or text at up to 50 locations on the graph. If you exceed this number, those points are ignored.
There is no set maximum value for Info.maxaddpoints.
Addition of points is simply a matter of collection of the
information and calling of
In this case, that is taken care of by the function addpoint().
(The form has the name "info" in this case.)
The text for a point is displayable by rolling the mouse over the point.
Similarly, adding text requires a call to GRaddtext().
Note that "text" is a very general term here. It can be any valid HTML, including image tags, "a" tags, superscript and subscript tags, text input, buttons, etc.
If form elements are added, then make certain that they are surrounded by <form> and </form>.
The colors for points and text are handled two different ways. Point colors are actually just names of valid GIF files
that must be present in the directory containing the calling page (or in the directory specified by Info.imagedir.
The fifth parameter, GRUSER, indicates that the x,y coordinates are in user coordinates (based on the numbers indicated on the graph).
However, three possibilities exist for this parameter.
document coordinates, with (0,0) in the upper left-hand corner.
coordinates based on a named anchor page element (such as an image)
using Info.anchor (see exampleq.htm)
copyright 2001 Robert M. Hanson. All rights reserved. divgraph.js is freely distributable for noncomercial purposes, provided reference is made as "divgraph.js was developed at St. Olaf College by Robert M. Hanson (http://www.stolaf.edu/people/hansonr/divgraph)." Commercial licensing is available for specific purposes.