This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Servlets and the fly likes draw bar chart in java or servlet or jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "draw bar chart in java or servlet or jsp" Watch "draw bar chart in java or servlet or jsp" New topic

draw bar chart in java or servlet or jsp

Arun Vethadas .T
Ranch Hand

Joined: Dec 13, 2001
Posts: 36
i'm doing a jsp project i need to draw a chart using database values. Reporting chart.when database updates chart automatically update i want. Total no of record vs no of passed record
(like 200 vs 143). pls send code in servlet or jsp or java. pls help me soon.send code in
like Pie Chart,Bar Chart,column chart or graphs
[ January 16, 2002: Message edited by: arun vethadas ]
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

...or rather than just giving the solution to you, we can discuss it here so everyone can share.
I'd have this as a JSP that created 2 images that get stretched depending on the proportions.

You also have the option of scaling or normalising the data (eg if they can only have a total width of 200 etc)
In addition, if you make the gifs 1*1, they are tiny but still look the same when stretched.
This what you were looking for?
Jaume Sola

Joined: Jan 21, 2003
Posts: 14
See RChart: and click on "RChart".
It has the following advantages:
- very reasonable price
- Documentation , support and online-tutorial are included
- Works as applet, servlet or bean.
- It works with java 1.1 also
- Supports more than 18 types of charts andhas interactive features (zoom,tips,scroll,html
- Includes RChart Visual Builder (almost no programming)
- Can read data from database.
- source code is available can be freely modified for commercial applications also.
I agree. Here's the link:
subject: draw bar chart in java or servlet or jsp
It's not a secret anymore!