Steps to do a graph

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
All

Steps to do a graph

Post by All » Thu Oct 26, 2000 8:11 pm

Can someone tell me what steps I must to follow for to do a chart?

Regards!

David Gilbert

RE: Steps to do a graph

Post by David Gilbert » Fri Oct 27, 2000 10:56 am

What steps have you tried?

I'd suggest taking a look at the source code in JFreeChartDemo.java and having a read through the documentation (a separate download). Please let me know which parts of the documentation need improvement, as I'm in the process of overhauling it for version 0.6.0.

Regards,

DG.

Alejandra Kauffmann

RE: Steps to do a graph

Post by Alejandra Kauffmann » Fri Oct 27, 2000 3:25 pm

Well, I tried this:

I download the files... then when I tried to compile the files in event, chart and ui charpters... I get a lot of messages that say "The class X does not exist" ...

I tried to put my classpath... but I put one path for event charpter, another for chart, and another for ui... but when I run autoexec.bat I get the message "Without space in rnvironment".

I tried to put only one path in my classpath, for the charpter above they, but I get the same message.

I tried with the example in readme file.. is very simple, only for proof.

I dont know what I am doing wrong... I hope you can help me...

thanks in advance!

David Gilbert

RE: Steps to do a graph

Post by David Gilbert » Fri Oct 27, 2000 4:32 pm

When javac is looking for source files, it already knows the package names from the import statements. So it will look in the directories:

com/jrefinery/chart/*.java
com/jrefinery/chart/event/*.java
com/jrefinery/chart/ui/*.java

for classes, because the source code says:

import com.jrefinery.chart.*;
import com.jrefinery.chart.event.*;
import com.jrefinery.chart.ui.*;

But javac doesn't know where you stored those directories. Say you put them in C:/jfreechart/...

C:/jfreechart/com/jrefinery/chart/*.java
C:/jfreechart/com/jrefinery/chart/event/*.java
C:/jfreechart/com/jrefinery/chart/ui/*.java

Then you can either invoke javac from C:/jfreechart or you can specify C:/jfreechart in your sourcepath (use the command-line option rather than setting it in autoexec.bat, then you know what you're getting).

Hope that helps,

DG.

Ale

RE: Steps to do a graph

Post by Ale » Wed Nov 01, 2000 5:43 pm

Thanks for all, all works today!

Locked