#987 WaterfallBarRenderer: labels not painted when zoomed

open
nobody
General (896)
5
2012-11-27
2010-02-26
Walter Laan
No

The WaterFallBarRenderer doesn't clip the bar Rectangle to the data area when painting, which has as result that if you zoom in on portion the label isn't painted in the correct location (at least if the anchor is center).

To see to issue, run BarChartDemo3 and zoom in from 3 to 5 -> the labels are painted centered to the visible part of the bars.
But if you run WaterfallChartdemo1 and zoom in from 20 to 25 -> no labels are visible while they have anchor center.

Attached a patch (tested with the WaterfallChartdemo1 with PlotOrientations horizontal and vertical, but not with other label positions).

Discussion