I created a waterfall chart using createWaterfallChart() and used the BarRenderer to set space between bars using the renderer property setItemMargin(double). This is did not work for waterfall chart but did work for bar and stackedBar charts when using BarRenderer.
Not sure if this API is supported for waterfall chart or not.
cross posted here
Waterfall Chart - Space between bars
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Waterfall Chart - Space between bars
That is a bit inconsistent, I guess because the original code was submitted by someone else and I never spotted it. I'll look and see what is required to fix it.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Re: Waterfall Chart - Space between bars
I was able to get the space using CategoryAxis.setCategoryMargin(double) method. Have posted the answer here