ServletUtilities.saveChartAsPNG:: Memory Issue

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
philanthrophic
Posts: 9
Joined: Wed Mar 26, 2008 6:20 am

ServletUtilities.saveChartAsPNG:: Memory Issue

Post by philanthrophic » Thu Apr 03, 2008 12:31 pm

Hi all,

When we use ServletUtilities.saveChartAsPNG() function, are holding the .png file created in the session or is it kept somewhere in temporary directory.
How exactly it works in the WEB CONTEXT.

I am actually woreried about the memory usage when i am using JFreecharts on the web page.

Secondly currently if we want to drilldown we are getting url on the charts itself, how can we get the hyperlink on the legends and not on charts.

Thanks

philanthrophic
Posts: 9
Joined: Wed Mar 26, 2008 6:20 am

Post by philanthrophic » Mon Apr 07, 2008 7:24 am

Any suggestions on this

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Mon Apr 07, 2008 2:06 pm

I don't really know the ins-and-outs of this code, but I think you need to use the DisplayChart servlet (org.jfree.chart.servlet.DisplayChart) to show the chart and ensure that the temporary file is deleted once the user's session expires.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked