Hi,
Now, I use excellent JFreeChart with Java Servlet, and
I have one question about JFreeChart.
Question:
Although it is necessary to specify "Height" and "Width"
when outputting JPEG and PNG image using JFreeChart
(ChartUtilities.writeChartAsJPEG() etc..),
are there any methods which can get these "appropriate"
sizes of Height and Width ,automatically ?
The reason is that the more number of series and
category is increasing , the harder We view the outputed image
if this image size is fixing.
Regards,
Mikio Kishi
Can I get the appropriate Height and Width which chart need,
Re: Can I get the appropriate Height and Width which chart n
By design, JFreeChart doesn't have a preferred height or width for charts. It just tries to do the best it can with the space allocated to it. Most of the time this works well, but it isn't perfect.
You might be able to devise a simple calculation to determine the chart size based on the number of series/categories, and put that in your servlet code.
Regards,
DG.
You might be able to devise a simple calculation to determine the chart size based on the number of series/categories, and put that in your servlet code.
Regards,
DG.
Re: Can I get the appropriate Height and Width which chart n
Thank you for your rapid response.
I will try to devise such a calculation based on the number of series/categories.
Mikio Kishi
I will try to devise such a calculation based on the number of series/categories.
Mikio Kishi