How to remove right and top border border on the chart ?

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

How to remove right and top border border on the chart ?

Post by Yann » Fri Mar 14, 2003 2:15 pm

I only want to keep XAxis on the bottom and Yaxis on the left.
What is the code to remove the two other borders ?

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Fri Mar 14, 2003 6:26 pm

You can try:

Code: Select all

myChart.getPlot().setOutlineStroke(null);
But that will remove the whole border around the plot. You'll probably find that the axes don't actually draw lines at the left and bottom, so that plot border is necessary. Of course, that is a problem that should get fixed. Try it out, and file a bug report at SourceForge if necessary...

Regards,

Dave Gilbert

Locked