Meaningless Drivel is fun!*
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
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
Author

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
vethadas@hotmail.com
like Pie Chart,Bar Chart,column chart or graphs
Thanks,
arun.
[ January 16, 2002: Message edited by: arun vethadas ]
David O'Meara
Rancher

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.
eg

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?
Dave
Jaume Sola
Greenhorn

Joined: Jan 21, 2003
Posts: 14
See RChart: http://www.java4less.com 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
links)
- Includes RChart Visual Builder (almost no programming)
- Can read data from database.
- source code is available can be freely modified for commercial applications also.
 
Don't get me started about those stupid light bulbs.
 
subject: draw bar chart in java or servlet or jsp
 
Similar Threads
how to display bar chart based on the database values using jsp
session in JSP
JSP VS. SERVLETS
Draw Bar Chart in JSP help me soon
printing using servlet