Discussion:
Plotting a graph in Java Netbeans
at221
2010-06-03 01:00:58 UTC
Permalink
Hi all 8) ,

As you can see from my profile I am a new user of NetBeans. I have some experience in Java but my knowledge is very limited. I have tried using bluej and ecllipse before getting my hands on NetBeans, and from an amateur I have to say NetBeans is the most user-firnedly without compromising functionality.

I have gone through several tutorials for netbeans particularly swing and GUI. I am a complete noob when it comes to graphics in Java but what I want to do now requires more knowledge in this area.

Bascially, I am trying to plot a graph of values (y-axis) against time(x-axis). The data is stored in an excel spreadsheet and has over 8000 entries. If I were to plot this as a line grap, what will the best way in achieving this?

Value Time
------- ------
3300 0000
2110 0001
2222 0002
324 0003
1242 0004
. .
. .
. .

Do I need to convert the spreadsheet to something else and is there a way in NetBeans to do this graphically in a design panel, like for the GUI?

Any help and advice will be appreciated.

Thanks
Johannes Homuth
2010-06-03 10:44:20 UTC
Permalink
I quess you should look at the JFreeChart Project.
http://www.jfree.org/jfreechart/
Post by at221
Hi all 8) ,
As you can see from my profile I am a new user of NetBeans. I have some experience in Java but my knowledge is very limited. I have tried using bluej and ecllipse before getting my hands on NetBeans, and from an amateur I have to say NetBeans is the most user-firnedly without compromising functionality.
I have gone through several tutorials for netbeans particularly swing and GUI. I am a complete noob when it comes to graphics in Java but what I want to do now requires more knowledge in this area.
Bascially, I am trying to plot a graph of values (y-axis) against time(x-axis). The data is stored in an excel spreadsheet and has over 8000 entries. If I were to plot this as a line grap, what will the best way in achieving this?
Value Time
------- ------
3300 0000
2110 0001
2222 0002
324 0003
1242 0004
. .
. .
. .
Do I need to convert the spreadsheet to something else and is there a way in NetBeans to do this graphically in a design panel, like for the GUI?
Any help and advice will be appreciated.
Thanks
--
B.Sc. Johannes Homuth

-------------------------------------------------------
SOURCEPARK GmbH
Helmholtzstr. 2-9, Gebäude M
10587 Berlin

Tel.: +49 (0) 30 / 39 80 68 30
Fax: +49 (0) 30 / 39 80 68 39
e-mail: ***@sourcepark.de
www: www.sourcepark.de
------------------------------------------------------
SOURCEPARK GmbH
Sitz der Gesellschaft: Berlin / Amtsgericht Charlottenburg
HRB 80254
Geschäftsführung: Matthias Barmeier, Harald Dürr
------------------------------------------------------


Diese Email kann vertrauliche und/oder rechtlich geschützte Informationen
enthalten. Wenn sie nicht der richtige Adressat sind oder diese E-Mail irr-
tümlich erhalten haben, informieren Sie bitte sofort diesen Absender und ver-
nichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser E-Mail ist nicht gestattet.
Loading...