Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

draw bar chart in java or servlet or jsp

 
Arun Vethadas .T
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic