How to get start the jfreechart code?

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

How to get start the jfreechart code?

Post by caton » Wed Nov 13, 2002 11:09 am

Hi Sir,

Could anyone tell me some hits ,how to start to learn the jfreechart project?


thanks,

caton

Dave Gilbert

Re: How to get start the jfreechart code?

Post by Dave Gilbert » Wed Nov 13, 2002 11:12 am

Start by downloading the jfreechart-0.9.4-install.pdf guide and running the demo applications. There are lots of demos in the com.jrefinery.chart.demo package.

Regards,

DG

sergio

JChart Configuration

Post by sergio » Fri Nov 15, 2002 2:33 pm

I downloaded the jchart package, but I couldn't run it, even though when I read the pdf and the documentation files that come along when you get jfreechart in the download page. My question here is, I'm running Windows NT 2000, what settings should I change in the system so the jchart will work fine?, let me know thanks.

David Gilbert

Re: How to get start the jfreechart code?

Post by David Gilbert » Fri Nov 15, 2002 4:04 pm

You shouldn't need to change anything on your system, as long as you have a working JDK installed. When you run an application that uses JFreeChart, you need to ensure that jfreechart-0.9.4.jar and jcommon-0.7.1.jar are on the classpath. I usually specify the classpath when I run 'java' using the '-classpath' command line parameter - it saves having to change anything "system-wide".

Regards,

DG

sergio

Re: How to get start the jfreechart code?

Post by sergio » Fri Nov 15, 2002 5:49 pm

Hi again and thanks for your reply, I'm running Windows NT 2000, and I have JRE 1.3, I'm working on a project that needs to use a servlet, the servlet is in two jar files, I've read the help documentation that comes along with the servlet, but I just can't get the servlet running, the documentation help file says that for running the servlet you should type the following: java -classpath lib/jcommon-0.7.1.jar;jfreechart-0.9.4.jar;jfreechart-0.9.4-demo.jar com.jrefinery.chart.demo.JFreeChartDemo. What I've tried is changing the classpath variable in the system properties -> enviroment variables, but I have no permission for changing the system variables the only thing I could change was the variables for my user profile, what should I do?, I hope you can help. Thanks.

sergio

Re: How to get start the jfreechart code?

Post by sergio » Sat Nov 16, 2002 8:30 pm

I already set the classpath with the jar files I have j2re1.4.1_01 installed.. but still the servlet doesn't run. can anyone help?

Dave Gilbert

Re: How to get start the jfreechart code?

Post by Dave Gilbert » Mon Nov 18, 2002 10:26 am

Hi Sergio,

The JFreeChartDemo.java file contains a sample application, it is not a servlet.

Regards,

DG

sergio

How can I customize the servlet for an application?

Post by sergio » Mon Nov 18, 2002 7:54 pm

Hi, I want to use the Gant Chart of the Jfreechart, what should I know to get this part of the servlet chart working on my web application?

Dave Gilbert

Re: How to get start the jfreechart code?

Post by Dave Gilbert » Mon Nov 18, 2002 11:38 pm

The ServletDemo2.java and ServletDemo2ChartGenerator.java files (included with the JFreeChart documentation) show how to generate three different types of charts in a servlet. I hope the code demonstrates that the chart type is independent of the final delivery...all you need is a reference to a JFreeChart object.

So assuming that you can run the GanttDemo.java demo application on your local machine, it shouldn't be difficult to extract the code that creates the Gantt chart and embed it in a servlet.

Regards,

DG

sergio

Re: How to get start the jfreechart code?

Post by sergio » Tue Nov 19, 2002 2:35 pm

Thanks, I tried to locate those two files, but I couldn't, I downloaded the JFreeChart library and the Servlet but neither of them have them, do you know where I can look at them?, also the documentation you mentioned is not free?

Dave Gilbert

Re: How to get start the jfreechart code?

Post by Dave Gilbert » Tue Nov 19, 2002 4:41 pm

The two servlet demo files I mentioned are included in a download that is only available to developers that have purchased the JFreeChart Developer Guide (a 200+ page Acrobat PDF document). The price for this is US$39.95, there is a link at the top right of this page. I'd like to make the documentation free too, but I have to earn some money (somehow) so that I can keep developing JFreeChart...

Regards,

DG

sergio

Re: How to get start the jfreechart code?

Post by sergio » Thu Nov 21, 2002 3:03 pm

Ok, what kind of contents does the JFreeChart documentation have?, and do you give technical support to people who pays for the documentation?, thank you and regards.

Dave Gilbert

Re: How to get start the jfreechart code?

Post by Dave Gilbert » Fri Nov 22, 2002 11:49 am

Hi Sergio,

If you click on the "advertisement" at the top right of this page, the link will take you to another page with some information about the JFreeChart Developer Guide. It is an Acrobat PDF file, just over 200 pages at present.

Anyone who purchases the guide will receive a URL, username and password for downloading a copy of the PDF file. The link will remain valid for at least one year, so you can download updates as they are released.

Support is NOT included, you are only paying for the documentation. Everyone gets free support in this forum, but without any guaranteed response time. At the moment, I cannot offer more than that. Once JFreeChart 1.0.0 is released (some time in 2003), I will consider commercial support contracts for JFreeChart, depending on the demand for it.

Regards,

Dave Gilbert

sergio

Re: How to get start the jfreechart code?

Post by sergio » Fri Nov 22, 2002 4:46 pm

Thank you David! I will get the documentation

Locked