Nate...do me a favor, and try a test.  

1)      Create a lineseries in actionscript

2)      Set its showDataEffect to interpolate (using the second approach
you describe below...something like
mySeries.setSTyle("showDataEffect",new SeriesInterpolate());

3)      Give it some data

4)      Add it to a chart

5)      Now add a button to your app. When the button is clicked, give
the series some new data.

 

See if it interpolates on click. I suspect that our series are set to
not run the showDataEffect on the first data (this is the general policy
of the framework...show effects aren't run when a component is first
shown).

 

Ely.

 

 


> -----Original Message-----
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>

> [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> ] On Behalf Of Nate Pearson
> Sent: Thursday, September 13, 2007 2:48 PM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Re: How do I setStyle("showDataEffect", 
> interpolate) for a LineSeries?
> 
> I don't get an error. It just doesn't work. I'm adding and 
> removing series and they just pop up instead of that nice 
> interpolate feature
> 
> --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>  
> <mailto:flexcoders% <mailto:flexcoders%25> 40yahoogroups.com> , "Matt
Horn" <[EMAIL PROTECTED]> wrote: 
> >
> > This should work:
> > > myLineSeries.setStyle("showDataEffect", "interpolate")
> > 
> > Please post the error your getting and a complete code sample that 
> > shows the error.
> > 
> > -matt
> > 
> > > -----Original Message-----
> > > From: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>  
> > > <mailto:flexcoders% <mailto:flexcoders%25> 40yahoogroups.com>
> > > [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>  
> > > <mailto:flexcoders% <mailto:flexcoders%25> 40yahoogroups.com> ] On
Behalf Of Nate Pearson 
> > > Sent: Thursday, September 13, 2007 1:27 PM
> > > To: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>  

> <mailto:flexcoders% <mailto:flexcoders%25> 40yahoogroups.com>
> > > Subject: [flexcoders] How do I setStyle("showDataEffect",
> > > interpolate) for a LineSeries?
> > > 
> > > I learned that showDataEffect is a style not a property 
> from Ely's 
> > > post (http://tech.groups.yahoo.com/group/flexcoders/message/49710 
> > > <http://tech.groups.yahoo.com/group/flexcoders/message/49710 >
> > > <http://tech.groups.yahoo.com/group/flexcoders/message/49710 
> > > <http://tech.groups.yahoo.com/group/flexcoders/message/49710 > > )
> > > 
> > > Now I can't figure out the correct way to set it. 
> > > 
> > > Here's what I've tried:
> > > mxml:
> > > <mx:SeriesInterpolate id="interpolate" elementOffset="10"/>
> > > 
> > > script:
> > > var myLineSeries:LineSeries = new LineSeries()
> > > 
> > > myLineSeries.dataProvider = graphData.getItemAt(0) 
> > > myLineSeries.yField = "marginDollars"
> > > myLineSeries.xField = "dateTime"
> > > myLineSeries.setStyle("showDataEffect", interpolate)
> > > 
> > > chart.series = [myLineSeries]
> > > 
> > > That didn't work, so I added this code:
> > > var myInterpolate:SeriesInterpolate = new SeriesInterpolate() 
> > > myLineSeries.setStyle("showDataEffect", myInterpolate)
> > > 
> > > no joy...so i tried it like this too, even though it didn't make 
> > > sense to me:
> > > myLineSeries.setStyle("showDataEffect", "interpolate")
> > > 
> > > surprise surprise, that didn't work either!
> > > 
> > > Any help is greatly appreciated!
> > > 
> > > Thanks,
> > > 
> > > Nate
> > > 
> > > 
> > > 
> > > 
> > >
> >
> 
> 
> 
> 
> 



 

 

<<image001.jpg>>

<<image002.jpg>>

Reply via email to