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 firstname.lastname@example.org like Pie Chart,Bar Chart,column chart or graphs Thanks, arun. [ January 16, 2002: Message edited by: arun vethadas ]
...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
Joined: Jan 21, 2003
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.