开发者

Flex chart axis title blinking on resize

I am having a chart with titles for horizontal and vertical axis. the verticalAxisTitleAlignment property of the vertical axis renderer is开发者_C百科 set to vertical. The application is a portal sort of thing and this chart is placed inside a small window. on click of the window am resizing the parent of the chart. but at that time the title of the axis is blinking and it provides a feeling that the resizing is not smooth. I dont understand why this happens? does the tile renders each time when the component is maximized? is there any way to stop that?

Thanks in Advance, Cheers, PK

This is the code am using to draw the title :

<mx:horizontalAxis>
 <mx:LinearAxis id="haxis" title="Share" interval="5"/>
</mx:horizontalAxis>
<mx:verticalAxis>
 <mx:LinearAxis id="vaxis" title="{'Aided'+ '\n'+ '    awareness'}" interval="5"/>
</mx:verticalAxis>
<mx:horizontalAxisRenderers>
 <mx:AxisRenderer axis="{haxis}" 
  axisStroke="{axisStroke}"
  tickPlacement="none"/>
</mx:horizontalAxisRenderers>
<mx:verticalAxisRenderers>
 <mx:AxisRenderer axis="{vaxis}" 
  axisStroke="{axisStroke}" 
  verticalAxisTitleAlignment="vertical"
  tickPlacement="none"/>
</mx:verticalAxisRenderers>


does the tile renders each time when the component is maximized?

Yes it does. That's how iteRenderer works.

is there any way to stop that?

Can you show your itemRenderer code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜