Changing the width of 3D bars.

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

Changing the width of 3D bars.

Post by SNebben » Tue Jul 30, 2002 7:31 pm

Can anyone suggest how to modify the width of bars (using VerticalBarRenderer3D adn VerticalNumberAxis3d on a VerticalCategoryPlot).

Thanks!
SNebben

David Gilbert

Re: Changing the width of 3D bars.

Post by David Gilbert » Tue Jul 30, 2002 9:51 pm

In order to draw charts that look reasonable at a range of different sizes, the bar widths are automatically calculated. You can have some control, indirectly, using these four methods from the CategoryPlot class:

public void setIntroGapPercent(double);
public void setTrailGapPercent(double);
public void setItemGapsPercent(double);
public void setCategoryGapsPercent(double);

These control the percentage of total width that is assigned to the different "gap types" in a bar chart. Experiment with different settings until you get what you want...

Regards,

DG.

SNebben

Re: Changing the width of 3D bars.

Post by SNebben » Wed Jul 31, 2002 5:42 pm

Thanks! This will get me what I want!
SNebben

SNebben

Re: Changing the DEPTH of 3D bars.

Post by SNebben » Fri Aug 02, 2002 3:46 pm

...I guess my question is more rather is there a way to adjust the depth of the bars?

THanks

Dave Gilbert

Re: Changing the DEPTH of 3D bars.

Post by Dave Gilbert » Fri Oct 25, 2002 9:36 am

I'm way too late, but here is the answer for anyone who is looking for it:

http://www.object-refinery.com/phorum-3 ... 304&t=5304

Regards,

DG

Stacey

Re: Changing the width of 3D bars.

Post by Stacey » Fri Oct 25, 2002 1:56 pm

Better late than never! We appreciate the responses all the time!

Locked