PDA

View Full Version : Setting Charts' Interval in Runtime


vebazzo
05-30-2006, 01:02 PM
Hello again!

I have a probably very simple question to make. I am using a barchart in my flex and I want to set the interval, minimum and maximum values in the horizontal axis in runtime. I need to read these values from a file and then define the interval. I can't let Flex do it by itself because the values are too small and the bars all look the same.

So, right now I have this:

<mx:horizontalAxis>
<mx:LinearAxis interval="0.001" minimum="0.465" maximum="0.467"/>
</mx:horizontalAxis>

And I need these values to be set dinamically, in the script section of the mxml. How can I change these properties? Since the LinearAxis cannot have an id, I don't know how to reference them.

Thank you very much!