Gantt Chart Bar Width

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
sayan_maity
Posts: 15
Joined: Tue Feb 13, 2007 9:29 am

Gantt Chart Bar Width

Post by sayan_maity » Mon Apr 16, 2007 12:03 pm

Hi,
How to increase the Gantt Chart bar width.
I tried the GanttRenderer.setMaximumBarWidth(1.0f) but this has no effect. It is always taking the default value.
Is there any way to increase the bar width.

Thanks and regards,
Sayan Maity

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 » Wed Apr 18, 2007 9:55 am

setMaximumBarWidth() caps the width of the bars. In general, you can't specify the bar width, because it is calculated from the available space. You can reduce the upper and lower margins on the axis, the margin between bars, and the margin between categories --- all of which make more space on the chart available for the bars themselves.
David Gilbert
JFreeChart Project Leader

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

sayan_maity
Posts: 15
Joined: Tue Feb 13, 2007 9:29 am

Post by sayan_maity » Wed Apr 18, 2007 12:12 pm

Hi David,
I used rangeAxis.setUpperMargin(0.0f); and rangeAxis.setLowerMargin(0.0f); but without any effect.
Can you please let me know where to do the settings.

Thanks and regards,
Sayan Maity

Locked