<mx:ColumnChart
id="upper"
....
....

        <mx:verticalAxis  >
                <mx:LinearAxis
                        id="vertLinearAxisUpper"
                        labelFunction="verticalAxisPrefixUpper"
                        baseAtZero="false"
                        autoAdjust="false" 
                        maximum="{model.parameters.yMax}"
                        minimum="{model.parameters.yMin}"
                                
                         />
        </mx:verticalAxis>
....
....
</>

<mx:ColumnChart
id="lower"
....
....
        <mx:verticalAxis  >
           <mx:LinearAxis
                id="vertLinearAxisLower" 
                labelFunction="verticalAxisPrefixLower" 
                baseAtZero="false" 
                autoAdjust="false"
                maximum="{model.parameters.yMax}"
                minimum="{model.parameters.yMin2}" />
        </mx:verticalAxis>
</>

private function verticalAxisPrefixUpper(value:*,a:*,b:IAxis):String
            {   ...
                ...
                ...
            }
        
private function verticalAxisPrefixLower(value:*,a:*,b:IAxis):String
            {   ...
                ...
                ...
            }

If I call only the labelFunction for the first Axis it works 
perfectly, calling for two different Axis two different labelFunction 
will make the first that worked to not behave as expected and also 
the second is not working as well.





--- In [email protected], "Sunil Bannur" <[EMAIL PROTECTED]> wrote:
>
> Can you post a small code snippet, if you use the same axis for 
both the
> charts, then this can happen, not sure whether thats the issue you 
are
> facing.
>  
> -Sunil
> 
> ________________________________
> 
> From: [email protected] 
[mailto:[EMAIL PROTECTED] On
> Behalf Of alex
> Sent: Friday, January 18, 2008 6:22 AM
> To: [email protected]
> Subject: [flexcoders] Two chart components w. Linear Axis calling
> similar function on them breaks down
> 
> 
> 
> Hey
> 
> I have two ColumnChart components with Linear Axis
> I call labelFunction on each of them , the functions are similar in 
> functionality but different variables names. I'm just cleaning up 
> labels and ticks arrays to contain less members.
> 
> What strange happens is that the functions does not work well, 
their 
> functionality breaks down.
> 
> I don't call from second component the second function, everything 
> works fine !
> They can't overlap, I renamed everything ...
> 
> This is the second time I notice it , had problem with gridLines too
> had to create arrays with two different ids to use in each chart 
for 
> background elements , otherwise one would not work.
> 
> I use Flex 2.0.1
> 
> Anyone ?
>


Reply via email to