如何删除jfreechart中的边框?

时间:2012-07-30 07:05:26

标签: border jfreechart

您好我想删除jfreechart的chartpanel的边框。以下是该图表面板enter image description here

的图像

如何删除边框的小空间?

请帮帮我。

提前致谢...

2 个答案:

答案 0 :(得分:1)

您需要设置AxisOffset

CategoryPlot plot =  (CategoryPlot) chart.getPlot();
plot.setAxisOffset(RectangleInsets.ZERO_INSETS);

答案 1 :(得分:0)

plot.setInsets(new RectangleInsets(0,0, 0, 0));
//for parameter
//North,west,south,East 
相关问题