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
ServletUtilities.saveChartAsPNG:: Memory Issue
-
- Posts: 9
- Joined: Wed Mar 26, 2008 6:20 am
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
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
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

