Flex 4 - Axis Title Bug
When the verticalAxisTilteAlignment is 'vertical', the title will 'move' down and left off of the chart each time new line series are created. The problem code is in ChartLabel:
var p:AxisRenderer = AxisRenderer(parent);
if (p.getStyle('verticalAxisTitleAlignment') == 'vertical')
{
_label.rotation = 180;
_label.y = _label.y + _label.height;
_label.x = _label.x + _label.width;
}
After the first time through, the x and y are added to continuously causing the title to 'move' off the chart. My (admittedly hackish) work-around is a TitleRenderer that extends ChartLabel with an overridden 'updateDisplayList' like so:
getChildAt(0).x = 0;
getChildAt(0).y = 0;
super.updateDisplayList(unscaledWidth, unscaledHeight);
