This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes want to make a distribution graph~~~ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "want to make a distribution graph~~~" Watch "want to make a distribution graph~~~" New topic
Author

want to make a distribution graph~~~

Alex cordes
Greenhorn

Joined: Nov 15, 2005
Posts: 15
just wonder is there any way to make a distribution graph of a data?
just searched for it on the net, cant get a code or example... ...
anyone know how to make it?
many thanks~~~
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3700
    
    5

First, I recommend converting the data to some simplistic format like XML so it can be made uniform and easy to read. For Java graphing, there's a ton of SourceForge projects as well as proprietary chart programs, and some are better than others.

The reason I recommend the XML is that at least if you pick a particular format you can more easily migrating it to something else later.


My Blog: Down Home Country Coding with Scott Selikoff
Alex cordes
Greenhorn

Joined: Nov 15, 2005
Posts: 15
OK, thanks for ur reply... ...it seems too hard for me~~~
do u know how to make a table for a data? whats its code?
Ben Wood
Ranch Hand

Joined: Aug 14, 2001
Posts: 342
Alex,

Firstly, if you want to make a graph you can use Java2D, I'm sure if you search around you will be able to find a basic tutorial to get you started.

If you want to put data ina table take a look at javax.swing.JTable. You can construct one of those by passing in two arrays for example



where data is a two dimensional array of your data values (like a grid of rows and columns), and columnNames is a 1 dimension array of column names.


SCJP 1.4, www.gsi3d.org.uk
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: want to make a distribution graph~~~
 
Similar Threads
help regarding pie graph
animation in scrollPane
WA #2 ..... word association
histogram plus lines
Java Graphs