I am not positive this is right, but I suspect you want something like
this::
public function setupChart():void {
var myChart:AreaChart = new AreaChart();
var myValue:Number = .001;
var myAxis:LinearAxis = new LinearAxis();
myAxis.interval = myValue;
myChart.horizontalAxis = myAxis;
}
-Mark
vebazzo wrote:
>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!
>
>
>
>
>
>
>--
>Flexcoders Mailing List
>FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

