This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes dynamically changing web page containing chart Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "dynamically changing web page containing chart" Watch "dynamically changing web page containing chart" New topic

dynamically changing web page containing chart

rajib chakrabarti

Joined: Mar 31, 2006
Posts: 7
Can any one throw some insights into

How to make dynamically changing html documents containing charts and graphs...
Scheepers de Bruin
Ranch Hand

Joined: Jul 19, 2005
Posts: 99
There are a few ways of doing this:

1) Bar chart: Create a BIG table of cells that span certain number of columns/rows (bad Bad BAD) Rather not

2) The kewlest way (I think) is to generate an image using java's image tools and actually draw whatever chart you want programmatically. Create a servlet that does this, and simply streams the image to the browser.
In your page, just set the images' url to the sevlet (you can pass parameters in the url, if you want)

This way, you can instruct the image to reload using javascript, without having to reload the page.

We're doomed!!<br />Yay!!!<br />No that's bad Girr!!<br />Yay!!!
I agree. Here's the link:
subject: dynamically changing web page containing chart
It's not a secret anymore!