• Post Reply Bookmark Topic Watch Topic
  • New Topic

java charts  RSS feed

 
Sukitha Ranaba
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
How do I create chrats in my JSP?? I mean I have a dynamic table... and I want to show the data on charts.. Could somebody tell me the shortest possible path... Thanks

Suki
 
Kia Phia Ben
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can using applet.Input data from parameter
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't, period.
You can NOT mix data containing different mime types in a http stream, it just won't work.

What you can do is create a servlet that creates the chart as an image and put an img tag in the jsp that then calls that servlet to generate the image.

JFreeChart can do that very nicely (in fact I'm maintaining an application that does just that ).
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can do VERY PRIMITIVE bar charts with straight HTML ... Use an image per bar, 1x1 pixel images of various colors. Specify the image size to make bars.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!