How to - increase the size of chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
phani_vuppala
Posts: 4
Joined: Fri Apr 09, 2004 8:28 am

How to - increase the size of chart

Post by phani_vuppala » Mon Apr 12, 2004 12:18 pm

Hi :

How do we increase the size of the pie chart? I want the pie chart to be shown bigger. ie.e. i want only the size of piechart to be increased not the whole image.

I tried ServletUtilities.saveChartAsPNG(chart, 500, 500, info, session);, the size of the whole image is getting increased but the the size of pie chart diagram is still remaining the same. i.e. the border around the chart is increasing but the size of graph remains the same.

Any solution will be greatly helpful to me....

Thanking you,,

Best Regards,
V. Phani

Bharat

Post by Bharat » Tue Apr 20, 2004 6:14 pm

i am also looking for solution. Did u find any?

keerthi
Posts: 1
Joined: Tue May 30, 2006 7:42 pm

Post by keerthi » Tue May 30, 2006 7:43 pm

Can anyone suggest how to increase the size of Piechart?

Thanks in advance

angel
Posts: 899
Joined: Thu Jan 15, 2004 12:07 am
Location: Germany - Palatinate

Post by angel » Wed May 31, 2006 7:42 am

There are some parameters for borders/spacing like:

chart.getTitle().setBorder(...
plot.setInteriorGap(..
plot.setInsets(new RectangleInsets(...

They all affect the size of the plot.

velazquezs
Posts: 8
Joined: Tue Apr 11, 2006 11:10 pm

pie chart border/margin disapear

Post by velazquezs » Mon Jun 26, 2006 11:24 pm

What I did was this

Code: Select all

// Set chart margin color to white, so that it blurs with chart background color
// this is necesary for pie charts
plot.setOutlinePaint(Color.WHITE);

Locked