maximum chart width/height

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

maximum chart width/height

Post by Nathan Sequeira » Tue Feb 25, 2003 9:24 pm

What is the maximum width/height for charts rendered as JPEG images? I'm streaming chart images into a JSP page through a servlet, if it helps.

Through trial and error, I discovered that on my development platform (Win2K/Apache/JRun 3.1), I was able to generate charts with a max width/height of 3568 pixels.

This seems a little random. Is this a system dependent property?

David Gilbert

Re: maximum chart width/height

Post by David Gilbert » Wed Feb 26, 2003 12:08 am

That sounds odd...do you get any exception message? Have you tried the PNG encoder?

Regards,

Dave Gilbert

Nathan Sequeira

Re: maximum chart width/height

Post by Nathan Sequeira » Wed Feb 26, 2003 1:12 am

When I switched to the PNG encoder, I could get slightly higher numbers, but it also seems to depend on the complexity of the chart, i.e. the number of data series. Has there been much testing in this department?

David Gilbert

Re: maximum chart width/height

Post by David Gilbert » Wed Feb 26, 2003 1:19 am

I'd start by looking at the available memory for your JVM...perhaps that is where the problem lies.

Regards,

Dave Gilbert

Locked