I just got my first chart rendering in a servlet with data from my database using JFreeChart. It is awesome and fits my need (XY Time Series chart) quite well.
One problem I have come across, (through no fault of JFreeChart), is that the encoding of the chart to a jpeg takes what will be percieved as an unacceptable time to render (for a web page).
The encoding can take up to 20+ seconds.
Are there any tips or tricks that I can perform against JFreeChart (reduce number of colors used?) to optimize the time to encode the chart to a graphic?
Any help would be appreciated.
Thanks for an excellent library!
Bill Pfeiffer
Optimize for jpeg encoding
RE: Optimize for jpeg encoding
Hi Bill,
JPEG encoding isn't something I know much about. On the links page on my website there is a PNG encoder (open-source) that you could try instead (unless you really need/prefer JPEG) - it seems to encode images pretty quickly, although I haven't tried anything else.
Regards,
DG.
JPEG encoding isn't something I know much about. On the links page on my website there is a PNG encoder (open-source) that you could try instead (unless you really need/prefer JPEG) - it seems to encode images pretty quickly, although I haven't tried anything else.
Regards,
DG.