PDA

View Full Version : verticalAxisTitleAlignment property edit


Nisha117
09-16-2009, 01:44 AM
I'm attempting to change the default orientation of my linear chart's Y-axis title(which currently reads top to bottom) to read bottom up. I could achieve it through mxml by setting the "verticalAxisTitleAlignment" property to "vertical" on axisRenderer. But I cannot achieve the same through AS
Heres the peice of code
var yAxisRenderer:AxisRenderer = new AxisRenderer();
yAxisRenderer.axis = axisObj; (axisObj is my verticalAxis object)
yAxisRenderer.setStyle('verticalAxisTitleAlignment ', "vertical");
Surprisingly enough, a getStyle for 'verticalAxisTitleAlignment' property returns undefined both before and after setting the style as above. Shouldnt it be returning the default "flippedVertical" for the first getStyle query(before setting it with new value)?
I need to have this working through AS. Any help is greatly appreciated