Dynamic Flex verticalaxisrenderers

Posted by user276424 on Stack Overflow See other posts from Stack Overflow or by user276424
Published on 2010-02-18T20:09:54Z Indexed on 2010/03/16 0:19 UTC
Read the original article Hit count: 806

Filed under:
|
|

Hi,

I've created a linechart in flex using pure as3. I need now to convert it to a dynamic multi axis chart. What I mean by dynamic, is that I can programmatically add or remove axisrenderers from the verticalaxisrenderer array at runtime. It seems i can remove axisrenderers at runtime by simply doing this:

verticalAxisRenderers = verticalAxisRenderers.splice(index,1);

However, ADDING axisrenderers is not working. I am doing it by so:

verticalAxisRenderers.push(ar2); verticalAxisRenderers = verticalAxisRenderers;

Where am I going wrong? Please help!

Thanks, Tone

© Stack Overflow or respective owner

Related posts about flash

Related posts about actionscript-3