Charts in Gif Format

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

Charts in Gif Format

Post by Madhavi » Wed May 08, 2002 9:58 am

Hi there!
I came across JFreeChart couple of days ago. I am intrested in using it for our application, but I need these charts to be displayed on the website.
Currently, we are doing it with Java2D buffered Image. Is that possible get charts in Gif format, so that we can embed them in our jsp/html pages.

Please let me know. Thanks ver much!
-Madhavi

jim

Re: Charts in Gif Format

Post by jim » Wed May 08, 2002 4:55 pm

You can use the Acme gif encoder to convert a BufferedImage (or any other java.awt.Image) into a gif.

http://www.acme.com/java/software/Acme. ... coder.html

--jim

Michael T

Re: Charts in Gif Format

Post by Michael T » Wed May 08, 2002 5:25 pm

You can also display the images as JPEG or PNG. The methods to do so are in com.jrefinery.chart.ChartUtilities. You can look at the servlet demo for some ideas on how to generate the charts for your system.

Madhavi

Re: Charts in Gif Format

Post by Madhavi » Thu May 09, 2002 5:54 pm

Thanks for the information!
-Madhavi

David Gilbert

Re: Charts in Gif Format

Post by David Gilbert » Thu May 09, 2002 5:59 pm

Thanks from me too!

DG.

Locked