File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes JFreeChart - StackedBarChart Width Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "JFreeChart - StackedBarChart Width" Watch "JFreeChart - StackedBarChart Width" New topic
Author

JFreeChart - StackedBarChart Width

Astria Bothello
Greenhorn

Joined: Mar 12, 2012
Posts: 11
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


[Thumbnail for one.gif]

[Thumbnail for multiple.gif]

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JFreeChart - StackedBarChart Width