--- In [email protected], "Amy" <[EMAIL PROTECTED]> wrote:
>
> --- In [email protected], "samata" <samata.rao@> wrote:
> >
> > Hi,
> >
> > I have line chart..The line charts has values that are
populated
> > dynamically.
> >
> > The values could be anything...ranging from 100 to 100000 or
more.
> >
> > i wanted 2 know if there is some way one could identify the
maximum
> > value plotted and set it to value higher than that at
runtime...to
> > avoid this prob.
> >
> > I have come across properties like computedMaximum and
> > computedMinimum but they are protected properties in Flex 2
> >
> > I am using flex 2...
> >
> > thanx in advance,
>
> Not sure about Flex 2, but in Flex 3 I use something like:
>
> private function setChartProperties(chart:LineChart):void{
> //I find if you just go straight to it without casting it,
> //some properties will tell you they are read only
> var va:LinearAxis = chart.verticalAxis as LinearAxis
> if (myCondition) {
> va.maximum=800;
> va.minimum=200;
> va.title='Title for condition true';
> } else {
> va.maximum = 100;
> va.minimum = -10;
> va.title='Title for condition false';
> }
> }
> HTH;
>
> Amy
>
Thanx 4 reply Amy...
But i need the soln For Flex 2...
V r using that 4 our project:-))