This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JFreeChart - StackedBarChart Width

 
Astria Bothello
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to set the width of my stackedbarchart. I have used the following to set the width.

((BarRenderer)plot.getRenderer()).setMaximumBarWidth(.15);
((BarRenderer)plot.getRenderer()).setItemMargin(.5);

But this works only if I have one bar displayed. See attachment - one
If I have multiple bars (as per the series) the width seems to be auto set. See attachment - multiple

Appreciate any suggestions
one.gif
[Thumbnail for one.gif]
multiple.gif
[Thumbnail for multiple.gif]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic