For instance, StackedBarChartDemo2 has 4 Categories (4 bars).
If I change the dataset to have only one category (bar), it takes up a whole drawing area.
How do I fix a bar size no matter how big the drawing area is?
Thanks.
Q [/url]
how to fix the bar size no matter what ChartPanel size is
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
You can't fix the bar width, but you can limit it using this method:
http://www.jfree.org/jfreechart/javadoc ... th(double)
http://www.jfree.org/jfreechart/javadoc ... th(double)
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

