Waterfall Chart - Space between bars

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Post Reply
thegame90
Posts: 6
Joined: Mon Aug 26, 2019 8:04 pm
antibot: No, of course not.

Waterfall Chart - Space between bars

Post by thegame90 » Mon Sep 16, 2019 4:27 pm

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

david.gilbert
JFreeChart Project Leader
Posts: 11703
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Waterfall Chart - Space between bars

Post by david.gilbert » Tue Oct 01, 2019 4:23 am

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

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited

thegame90
Posts: 6
Joined: Mon Aug 26, 2019 8:04 pm
antibot: No, of course not.

Re: Waterfall Chart - Space between bars

Post by thegame90 » Fri Oct 18, 2019 6:40 pm

I was able to get the space using CategoryAxis.setCategoryMargin(double) method. Have posted the answer here

Post Reply