Im looking for some sample code to create a simple line graph. can someone please point me in the right direction. thanks.
adam.
Sample code for a line graph...
Re: Sample code for a line graph...
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.
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.