Can I set a absolute value to the width of a bar in a chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
josafassj
Posts: 10
Joined: Sat Jul 26, 2008 1:24 pm

Can I set a absolute value to the width of a bar in a chart

Post by josafassj » Mon May 11, 2009 3:48 pm

Hi everybody,

I'm generating a lot of charts with different datasets, the bar in charts haves bars with different widths because the X axis haves different number of fields.
I had seen that the method setMaximumBarWidth(double percent), Sets the maximum bar width, which is specified as a percentage of the available space for all bars.

I want to set an absolute value to the bar width to make all my charts with a specific bar widht.

Is it possible?

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: Can I set a absolute value to the width of a bar in a chart

Post by paradoxoff » Tue May 12, 2009 9:49 am

Is this thread helpful?

josafassj
Posts: 10
Joined: Sat Jul 26, 2008 1:24 pm

Re: Can I set a absolute value to the width of a bar in a chart

Post by josafassj » Tue May 12, 2009 1:31 pm

Hi paradoxoff,

I set the setMaximumBarWidt methdo to 0.01 and worked for me.

Thank's for your reply

Locked