Displaying Charts

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

Displaying Charts

Post by L.Sivaraman » Wed Oct 29, 2003 9:10 am

Hai all,
I am working with JFreeCharts in JSP page.
I use
ServerUtilities.sendTempFile(FileName,response)
to put the chart in the screen. If I have more than one Chart in my page, one one is displayed , I don't find the other charts.
Moreover what ever HTML commands I gave r not visible in the screen
help please :cry:

thanks
sivaraman.

emdlc
Posts: 9
Joined: Mon Oct 20, 2003 9:09 pm
Location: Virginia
Contact:

Use a built in method that does this for you

Post by emdlc » Tue Nov 04, 2003 11:23 pm

ChartUtilities.writeChartAsJPEG(out, chart, width, height);
Ed Delacruz

emdlc
Posts: 9
Joined: Mon Oct 20, 2003 9:09 pm
Location: Virginia
Contact:

Additionally for multiple

Post by emdlc » Tue Nov 04, 2003 11:24 pm

Use the
ChartUtilities.writeChartAsJPEG(out, chart, getWidth(), getHeight());
in a servlet or JSP that handles displaying each chart.

Inside another JSP or servlet, have it contain an <IMG> tag for each chart that calls the JSP.
Ed Delacruz

Locked