Gantt chart image size

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
syella
Posts: 4
Joined: Fri May 30, 2008 9:25 am

Gantt chart image size

Post by syella » Wed Jul 23, 2008 1:36 pm

Hi all,
i have a problem with image generated by a gantt chart...
here is a screenshot :
Image
As you can see, more i have tick, more i have space at the top of the image (i have highlighted the area with the green line). when i reduce the image size, the area in green stays the same. i would like to dispatch more uniformly the ticks, in order to delete the space at the top of the image.
Any ideas please?
thanks a lot,
syella

mourid
Posts: 3
Joined: Tue May 12, 2009 11:18 am

Re: Gantt chart image size

Post by mourid » Tue May 12, 2009 11:26 am

I ve the same problem, do you find a solution for this please

syella
Posts: 4
Joined: Fri May 30, 2008 9:25 am

Re: Gantt chart image size

Post by syella » Tue May 12, 2009 2:00 pm

No, sorry :-(

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

Re: Gantt chart image size

Post by david.gilbert » Tue May 12, 2009 2:24 pm

Did you try the setLowerMargin() and setUpperMargin() methods in the CategoryAxis class?
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

mourid
Posts: 3
Joined: Tue May 12, 2009 11:18 am

Re: Gantt chart image size

Post by mourid » Tue May 12, 2009 3:05 pm

i try this
chart.getCategoryPlot().getRangeAxis().setUpperMargin(0);

but there is not any change
:(

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

Re: Gantt chart image size

Post by david.gilbert » Tue May 12, 2009 3:27 pm

The range axis is the one at the top showing the time of day.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

mourid
Posts: 3
Joined: Tue May 12, 2009 11:18 am

Re: Gantt chart image size

Post by mourid » Tue May 12, 2009 5:12 pm

Ok you have right, thank you
so what is for the margin like in the photo up
Thnak you

Locked