Hello
I am using JFreeChart 1.1.11.
I would like include this java library into a web application (Servlet Bean and JSP)
Inside one bean, I would like write one getxxxx method, with the followed parameters
imput parameter: JFreeChart object
Output parameter: JPEG or PNG object
How can I.
Could you help me
Thank in advance
How to return one PNG object from a JFreeChart
Re: How to return one PNG object from a JFreeChart
Something like the following should do the trick:
Code: Select all
import org.jfree.chart.ChartUtilities;
ChartUtilities.writeChartAsPNG(response.getOutputStream(), chart, width, height)