How to clear unwanted chart space?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
gopinath
Posts: 12
Joined: Wed Feb 17, 2010 1:21 pm
antibot: No, of course not.

How to clear unwanted chart space?

Post by gopinath » Tue Apr 20, 2010 4:05 pm

Normally in JFreeCharts the actual image is present with a default margin.
Please help me to draw charts with the actual image drawn for the given width and height without any margin(i.e extra space around the image).

Thanks,
Gopi

gengar
Posts: 26
Joined: Thu Mar 18, 2010 12:28 am
antibot: No, of course not.

Re: How to clear unwanted chart space?

Post by gengar » Tue Apr 20, 2010 8:47 pm


gopinath
Posts: 12
Joined: Wed Feb 17, 2010 1:21 pm
antibot: No, of course not.

Re: How to clear unwanted chart space?

Post by gopinath » Wed Apr 21, 2010 11:14 am

Hi gengar,
Thanks for your reply.
Setting the chart's padding and/or the plot's insets allow me to adjust the padding but the default spacing of 7 to 8 pixels is not getting removed.Can I get the chart for the exact width and height given?

Thanks again,
Gopi.

gopinath
Posts: 12
Joined: Wed Feb 17, 2010 1:21 pm
antibot: No, of course not.

Re: How to clear unwanted chart space?

Post by gopinath » Wed Apr 21, 2010 5:28 pm

Sorry, I've done a mistake. setPadding works well.

Thanks,
Gopi

Locked