Hi!!!
My source:
#################
My Comp
#################
private function showFrmEscala():void{
var popUpFrmEscalas:FrmEscalas = new FrmEscalas();
popUpFrmEscalas = FrmEscalas(PopUpManager.createPopUp
(parentApplication.vbPrincipal,FrmEscalas,true));
popUpFrmEscalas.dgEscalas.dataProvider = arrayAxisRenderers;
popUpFrmEscalas.chart = chart;
popUpFrmEscalas.addEventListener(EventFrmEscalas.ADD_ESCALA,
function(event:EventFrmEscalas):void {
registerClassAlias("mx.chart",LinearAxis);
lx = ObjectUtil.copy(event.escalaLinear) as LinearAxis;
addEscalaLinear(lx);
}
);
popUpFrmEscalas.addEventListener(EventFrmEscalas.REMOVE_ESCALA,
function(event:EventFrmEscalas):void {
registerClassAlias("mx.chart",LinearAxis);
lx = ObjectUtil.copy(event.escalaLinear) as LinearAxis;
removeEscalaLinear(lx);
}
);
}
private function addEscalaLinear(lx:LinearAxis):void{
axRenderer = new AxisRenderer();
axRenderer.axis = lx;
arrayAxisRenderers.push(axRenderer);
this.chart.verticalAxisRenderers = arrayAxisRenderers;
}
private function removeEscalaLinear(lx:LinearAxis):void {
for (var i:int=0; i<arrayAxisRenderers.length; i++){
if (arrayAxisRenderers[i].axis.displayName ==
lx.displayName){
arrayAxisRenderers.splice(i,1);
this.chart.verticalAxisRenderers = arrayAxisRenderers;
}
}
}
#############################
FrmEscalas:
#############################
private function createEscala():void {
preparaLinearAxis();
dispatchEvent( new EventFrmEscalas( EventFrmEscalas.ADD_ESCALA,
lx , true ) );
.........
dispatchEvent( new EventFrmEscalas(
EventFrmEscalas.REMOVE_ESCALA, dgEscalas.selectedItem.axis, true ) );
}
Thank's!!!!
--- In [email protected], guna samba <[EMAIL PROTECTED]> wrote:
>
> Please send ur sample code,
> so that i will make an analysis on that !!
>
> Thank's & Regards,
> Gunasekaran Sambandhan
>
>
>
> ----- Original Message ----
> From: Rodrigo Pereira Fraga <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Thursday, 30 August, 2007 3:59:15 PM
> Subject: [flexcoders] Re: Flex 3 with Multiples Axis (Visual Error)
BUG?
>
> With Axis addeds, when I remove the Vertical Axis,
> the Chart don't update, and when add again, Chart distorted.
>
> --- In [EMAIL PROTECTED] ups.com, "guna.samba" <gunase29@ .>
wrote:
> >
> > When the chart get distorted, while changing any action or from
the
> > begining (loading..)
> >
> > --- In [EMAIL PROTECTED] ups.com, "Rodrigo Pereira Fraga"
> > <rpffoz@> wrote:
> > >
> > > Please...
> > >
> > > I need Help! =/
> > >
> > > http://img480. imageshack. us/my.php? image=linecharte
rrorgt7.jpg
> > >
> > > >
> > > > Hi!
> > > >
> > > > I am using Flex3, and I create VerticalAxis, and Series
> > Dynamically.
> > > >
> > > > but when inserting and removing the VerticalAxis, the display
> of
> > > > chart goes being distorted.
> > > >
> > > > I need a method to repaint!!!
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --- In [EMAIL PROTECTED] ups.com, "guna.samba" <gunase29@>
> wrote:
> > > > >
> > > > > i think u need to show ur chart with dynamic axis and with
> out
> > > > > dynamic axis.
> > > > > If this is ur question,
> > > > > there may be some good way to solve the problem in flex
> 3.
> > > > > but as my knowledge, u can do this by setting visible
option
> in
> > > > > vertical axis dynamically,
> > > > > but the problem is chart will not get reloaded when
> using
> > > the
> > > > > above way, just the axis and supporing series get disabled.
> > > > >
> > > > > In order to repaint the chart, u have to dynamicaly
generate
> > the
> > > > > series. there is some way to create the series dynamically.
> > > > >
> > > > >
> > > > >
> > > > > --- In [EMAIL PROTECTED] ups.com, "Rodrigo Pereira Fraga"
> > > > > <rpffoz@> wrote:
> > > > > >
> > > > > > Hi!
> > > > > >
> > > > > > I put and remove Dynamic Axis, and when I remove the axis:
> > > > > >
> > > > > > http://img480. imageshack. us/my.php?
> image=linecharterro rgt7.jpg
> > > > > >
> > > > > > how I can update the chart?
> > > > > > with chart.validateNow( );
> > > > > > I dont have success.
> > > > > >
> > > > > > in the AdobeFlex exists repaint, or something thus?
> > > > > >
> > > > >
> > > >
> > >
> >
>
>
>
>
>
> Once upon a time there was 1 GB storage in your inbox. To
know the happy ending go to
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html
>