File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Displaying Graphs in web page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Displaying Graphs in web page" Watch "Displaying Graphs in web page" New topic
Author

Displaying Graphs in web page

Ralf Rommel
Greenhorn

Joined: Dec 25, 2002
Posts: 15
Hi
What are the various options available to display dynamic graphs / charts in webpages?
Applets are one way to do it.
Another way is to generate image files in Servlets and display that image in HTML pages.
Are there any other way(s) to acheive this.
What are the advantages & dis-advantages of the various approachs?
If the graphs can provide drill-down features, it will be an added advantage
Thanks in advance.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
with javascript, you will be only able to bar graphs easily.
It would just be done with tables, If you want an example, I could make one up. I could make it dynamic too.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Bars and columns can be done by stretching 1x1 pixel images, you don't even need Javascript.


[ JavaRanch FAQ ][ Book Promotions ][ DbTamer ][ BumperStickers ][ JavaRanch Badges ]
Ralf Rommel
Greenhorn

Joined: Dec 25, 2002
Posts: 15
Thanks for the replies.
But what are the options available if I want to display other type for charts (pie chart for example). And what about the drill-down features (the user has to click a particular part of the graph to get more detail on that info)?
Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2559

You'd be able to do it better with third party libraries like - JFreeChart (too good), you can use it either with your applets or servlets.
http://www.jfree.org/jfreechart/index.html
- Manish
 
 
subject: Displaying Graphs in web page
 
Threads others viewed
Graphs not getting displayed on UNIX environment
Opening and Displaying Images with Personal Profile
Graphs in J2ME
interface updating problem
plotting graphs in java
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture