This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display a set of data in graphics format.

 
Mike Yu
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Can someone tell me how to display a set a data in the format of graphical diagram when using JSP or HTML?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you mean that you want to generate an image, any servlets/JSP book (mine included) will tell you how. Note that JSP is NOT designed to serve binary data like images, you will have to use a servlet - don't panic, it isn't hard.
You could also go the SVG route (Scalable Vector Graphics) which a JSP could generate, but that may be harder to program.
Bill
 
Mike Yu
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bill,
Thank you for your response. I did not really mean to generate an image like a photo. I mean to display the data using coordinates (x, y), and use a curve to connect the points; or to display the data using a chart. Ideally, the display should be dynamic.
Can we make it, Bill?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That sure sounds like an application for an applet. You can use JSP to set up the page an applet lives in, but you would need a servlet for the applet to talk to and get current data.
Bill
 
Mike Yu
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Bill. Do you happen to have some code example about this?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic