Extra space

Discussion about JFreeChart related to stockmarket charts.
Locked
sasimar
Posts: 3
Joined: Fri Jul 08, 2011 3:27 pm
antibot: No, of course not.

Extra space

Post by sasimar » Fri Oct 07, 2011 11:16 am

I don't want any space between plot area and chart, I tried to set chart's padding to zero but it dosen't work.
Can you help me?

JFreeChart chart = new JFreeChart(null, JFreeChart.DEFAULT_TITLE_FONT,plot, false);
chart.setPadding(new RectangleInsets(0,0,0,0));

azrael
Posts: 9
Joined: Fri Jan 20, 2012 1:02 pm
antibot: No, of course not.
Location: Germany

Re: Extra space

Post by azrael » Mon Jan 23, 2012 1:00 pm

maybe you try:

Code: Select all

      chart.getPlot().setInsets(new RectangleInsets(0.0, 0.0, 0.0, 0.0));

Locked