How to eliminate the space around the PIE Graph

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
MasterJ
Posts: 19
Joined: Fri Jun 23, 2006 8:12 am

How to eliminate the space around the PIE Graph

Post by MasterJ » Wed Jul 19, 2006 8:36 am

Can any one tell me how to eliminate the space around the pie graph drawn?
I don't need any extra space at the top, laft, bottom and right sides of the actual graph.

Thanking you in advance ,
MasterJ
Master Java

dropsy
Posts: 9
Joined: Wed Jul 19, 2006 4:12 pm
Location: Rennes, France

Post by dropsy » Wed Jul 19, 2006 4:15 pm

i use "plot.setInteriorGap(0.15);" to remove the space all around the graph.

MasterJ
Posts: 19
Joined: Fri Jun 23, 2006 8:12 am

Thanks , it worked well.!

Post by MasterJ » Fri Jul 21, 2006 5:29 am

Thanks dropsy,
it worked well.
Could you tell me how to do the same for Bar Graphs?
What I need is to reduce the area of the plot rendered and increase the Background of the chart.because I'm limiting the space between the bars to be a certain maximum; so there is a lot of space in the plot .

Do you have any Idea?
Thanks in advance.
MJ
Master Java

dropsy
Posts: 9
Joined: Wed Jul 19, 2006 4:12 pm
Location: Rennes, France

Post by dropsy » Sat Jul 22, 2006 3:25 pm

Well, i need to do quite the same thing as you.
I don't know yet how to do it, i'll tell you if i find the way ;)

MasterJ
Posts: 19
Joined: Fri Jun 23, 2006 8:12 am

We may try to increase the padding between chart

Post by MasterJ » Mon Jul 24, 2006 6:17 am

Hi! Dropsy,
We may try to increase the padding between chart
as below.:


RectangleInsets ri =chart.getPadding();

ri=new RectangleInsets(ri.getTop(),ri.getBottom(),ri.getLeft(),ri.getRight()+50.0);
chart.setPadding(ri);

but that reduces the plot quality.

I need to clipoff the polt area.
Tell me if you find out.
Thanks in advance ,
MJ
Master Java

Locked