Sample code for a line graph...

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

Sample code for a line graph...

Post by Adam Balgach » Fri Jul 26, 2002 6:20 pm

Im looking for some sample code to create a simple line graph. can someone please point me in the right direction. thanks.

adam.

David Gilbert

Re: Sample code for a line graph...

Post by David Gilbert » Mon Jul 29, 2002 9:51 am

Hi Adam,

There are a few demo applications in the download:

LineChartDemo1.java
LineChartDemo2.java
LineChartDemo3.java

The thing to keep in mind is that you can create a "line chart" using either a CategoryDataset or an XYDataset (to suit the type of data you have).

Regards,

DG.

Locked