Bar Chart and Stacked Bar dynamic width

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
reboot
Posts: 46
Joined: Wed Jan 07, 2009 5:35 pm

Bar Chart and Stacked Bar dynamic width

Post by reboot » Fri Mar 13, 2009 12:19 pm

Greetings, im sure there is somewhere the answer to my quesiton, but i dunno how to search for it...i remember to have read it...

if i got only 2 categories in my chart, jfreechart create 2 bars very huge adapting the bar's width trough a %... i remember that is settable... but i dont remember where...

some one can help me? i'd like to set the width depending on the number of categories of the chart... so i can avoid the chart with monolith....

:P

tnx c ya!

reboot
Posts: 46
Joined: Wed Jan 07, 2009 5:35 pm

Re: Bar Chart and Stacked Bar dynamic width

Post by reboot » Fri Mar 13, 2009 3:55 pm

found it!

barRenderer.setMaximumBarWidth

c ya sorry for the question...again :D

Locked