jfreechart icon indicating copy to clipboard operation
jfreechart copied to clipboard

StackedAreaRenderer oddity

Open lemming622 opened this issue 7 years ago • 0 comments

There seems to be an oddity with StackedAreaRenderer when multiple datasets go to zero at the same category. When my low point for a StackedAreaRender is not 0.0 the plot that is produced looks fine. The issue that I'm having comes in when I have data that has a low point of 0.0. The issue draws the filled area halfway between the next two categories and makes the plot look off. Example code for runnable version of oddity. The work around I'm currently using is to check for zero and replace 0 with Math.ulp(1.0) to give the value a non zero value but visually a zero value.

lemming622 avatar Dec 20 '18 14:12 lemming622