can you post a complete code sample that illustrates this? -matt
> -----Original Message----- > From: flexcoders@yahoogroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of Nate Pearson > Sent: Thursday, September 13, 2007 2:48 PM > To: flexcoders@yahoogroups.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> , "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@yahoogroups.com > > > <mailto:flexcoders%40yahoogroups.com> ] On Behalf Of Nate Pearson > > > Sent: Thursday, September 13, 2007 1:27 PM > > > To: flexcoders@yahoogroups.com > <mailto:flexcoders%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 > > > > > > > > > > > > > > > > > > > > > >