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 / GUI / November 2005

Tip: Looking for answers? Try searching our database.

Update-able Graph in Web Application

Thread view: 
Randy - 07 Nov 2005 13:19 GMT
What is a good third party control (preferably open source) that works
in a browser (IE to start) and creates a graph that the User can
interact with?  We would like to create a Bar graph that the User can
click on the top of the Bar, and drag it up or down.  I have started
investigating JGraph, but I'm not sure if it can be deployed in a Web
Application.  Our current choice is Chart FX (for Visual Basic), but we
are moving into J2EE, and we would like to use only open source tools.
Roedy Green - 07 Nov 2005 13:59 GMT
>What is a good third party control (preferably open source) that works
>in a browser (IE to start) and creates a graph that the User can
>interact with?

What you are describing is more a specialised drawing tool. Graphs are
about converting numbers into pictures.

If this were my problem I would look into how you detect mouse move,
drag at a low level, and just draw the bars with fillRect on a JPanel
in paintComponent.

See http://mindprod.com/jgloss/event11.html

If you can't find something, and if working at that level leaves you
cold, I would be happy to create such a tool for you for a flat fee.

Let's say you were using this tool to track your daily weight, or hit
counts for example, the problem with drag is it is crude. It could be
very frustrating to the user to not be able to get it bang on the
value he wants.  You might want to have some fine-tuning mechanism to
inch the bar up or down, with a numeric indicator.

You also might want some auto-scaling logic so as a bar grows off the
top the whole graph scales to make it possible to display the desired
value.

If you have legends you want scaling to happen in various pretty
units.

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



©2008 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.