| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| DesignersTalk > create plots/charts dynamically on a web page |
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jan 2005
Posts: 1
|
create plots/charts dynamically on a web page
Use layers to create plots within a browser. Each point to be plotted is rendered via a layer (using the DIV tag). Mozilla/Firefox/IE seem to handle thousands of layers without any problem. Can attach event handler to each point for additional interactivity. Snippet example is housed within a JSP at the location below. Same technique can be used to create lines between rendered objects on the fly. Compute the equation of a line between two rendered objects. Plot the line point by point and render via div's. Have fun.... Code source and demo are at http://www.datacorner.com/coding click on the jsp for the demo. click on the txt file and then view source to see the code. seems to work just fine on IE5.0 or greater / MOZILLA / FIREFOX |
|
|
|
![]() |