Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

How to display chart in .jsp page

Thread view: 
Robert M. Gary - 05 Nov 2005 00:16 GMT
How can I display a dynamic X-Y chart on my web page that changes based
on user input? Is there a way I can return something via a servlet? Are
there any freeware JChart classes that I could push through a servlet?
-Robert
Andrew Thompson - 05 Nov 2005 00:22 GMT
> How can I display a dynamic X-Y chart on my web page that changes based
> on user input? Is there a way I can return something via a servlet? Are
> there any freeware JChart classes

JFreeChart (for example)

>.. that I could push through a servlet?

Into an (J)Applet, yes.

HTH
Roedy Green - 05 Nov 2005 11:21 GMT
>How can I display a dynamic X-Y chart on my web page that changes based
>on user input? Is there a way I can return something via a servlet? Are
>there any freeware JChart classes that I could push through a servlet?

It might be easier to pump the raw data to an Applet that does the
chart using any of the tools at http://mindprod.com/jgloss/graph.html
You could do that with a DataOutputStream.

The only other way I can think of doing it is to dynamically construct
a png image. That would be a heavy cpu load on the server, and a heavy
load to transmit. see http://mindprod.com/jgloss/imageio.html

Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.