mmm... why?
do you mean to format the data and only after assign it to the chart?
why not binding?

anyway, i want to format the data from within the chart instead of
within the response from the server.
plus i realy want to know (for my general knowledge) if there is a
chart event for data change and how to use it.
tnx


--- In [email protected], "Ely Greenfield" <[EMAIL PROTECTED]> wrote:
>
>  
>  
> I would _not_ use databinding to bind the data into the chart...instead,
> add a change handler to your array collection, and when it fires, assign
> the collection explicitly as the dataProvider for the chart.
>  
> Ely.
>  
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of shemeshkale
> Sent: Wednesday, December 13, 2006 2:10 PM
> To: [email protected]
> Subject: [flexcoders] Re: does charts have event for data change?
> 
> 
> 
> Ely - tnx for the help..
> the data is retreived from a data-base by a server then i change it to
> an ArrayCollection which is an array of objects inside each object i
> got several values.
> here is a problem: the dataProvider is binded to this collection but
> because lack of synch the data is coming AFTER the chart is already
> rendered. meaning first come an empty chart only after comes the data
> (of course this happens too fast for the human eye).
> i want to format the data from the collection therefore i need to know
> when this collection is changed. i have some other ways to see when
> this happens, but...
> 
> i want to know how can i do it from the chart side. 
> 
> --- In [email protected] <mailto:flexcoders%40yahoogroups.com>
> , "Ely Greenfield" <egreenfi@> wrote:
> >
> > 
> > 
> > 
> > Can you give more details about how you're using the chart? i.e.,
> where
> > are you getting your data from, what kind of data, what form is it in
> > when you assign it to the chart, are you assigning it to the chart or
> > the data providers, etc.
> > 
> > Ely.
> > 
> > 
> > ________________________________
> > 
> > From: [email protected] <mailto:flexcoders%40yahoogroups.com>
> [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of shemeshkale
> > Sent: Wednesday, December 13, 2006 11:05 AM
> > To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] Re: does charts have event for data change?
> > 
> > 
> > 
> > YES, that what i want!!
> > but how??
> > like so?? :
> >
> myChart.dataProvider.addEventListener(CollectionEvent.COLLECTION_CHANGE,
> > test);
> > 
> > it does not work either.
> > can you please show me how? an example would be great.
> > 
> > --- In [email protected]
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > , "Ely Greenfield" <egreenfi@> wrote:
> > >
> > > 
> > > 
> > > 
> > > Add it to your data provider instead.
> > > 
> > > Ely.
> > > 
> > > 
> > > ________________________________
> > > 
> > > From: [email protected]
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > [mailto:[email protected]
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > ] On
> > > Behalf Of shemeshkale
> > > Sent: Wednesday, December 13, 2006 4:10 AM
> > > To: [email protected] <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com> 
> > > Subject: [flexcoders] does charts have event for data change?
> > > 
> > > 
> > > 
> > > as simple as that:
> > > does charts have an event that fires whenever its data changes?
> > > 
> > > it seems that this:
> > > myGrid.addEventListener(CollectionEvent.COLLECTION_CHANGE, test);
> > > will work for DataGrid but not for charts
> > > 
> > > any idea how to do this with charts?
> > >
> >
>


Reply via email to