Rob Bamforth's Blog
Java, SQL, MySQL, Networking, SQL Server, PHP, COM, DBA + ODBC

Posts Tagged ‘chart’

JAVA – JFreeChart – How To Save a JFreeChart to JPEG File

November 5, 2008

 
A quick how to use JFreeChart quide can be found at- http://robbamforth.wordpress.com/2008/10/30/java-jfreechart-graphs-and-charts-in-java/
I wanted to be able to output the the charts to a picture file (JPEG) programatically. After a bit of research I got the following methods to paint the chart and output the image to a file.
Add these 2 methods to the class that creates the charts:
Method [...]

JAVA – JFreeChart – graphs and charts in JAVA

October 30, 2008

 
I came across a fantastic tool this week for creating graphs and charts in JAVA – JFreeChart.
The JARs and API can be downloaded from the following link:
http://www.jfree.org/jfreechart/download.html
 
STEP 1:
Once downloaded, the first step is to unzip the content and look for 2 files called -
jcommon-1.0.14.jar and jfreechart-1.0.11.jar
The file names may change slightly with new releases.
Copy these [...]