Getting Rid of border around Bar Chart

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

Getting Rid of border around Bar Chart

Post by Ratnakar » Fri Nov 15, 2002 8:01 pm

Hi,

I would like to get rid of the border around BarChart.
I have checked the groups, and someone suggested
the following:

subplot1.setInsets(new Insets(-1, -1, -1, -1));

However this eliminates the right hand side border only . It does
not eliminate top border. You can see the image generated
by my program at this link:

http://geocities.com/donmalla/1037386310789.jpg

I would like to have just the X-Axis and Y-Axis.

-Ratnakar

Dave Gilbert

Re: Getting Rid of border around Bar Chart

Post by Dave Gilbert » Mon Nov 18, 2002 10:31 am

Hi Ratnakar,

Try this:

myPlot.setOutlineStroke(null);

There's only one problem, I have a feeling that the axes do not get drawn independently of the plot outline. I have this on my list of things to fix.

Regards,

DG

Locked