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: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of Nate Pearson > Sent: Thursday, September 13, 2007 1:27 PM > To: [email protected] > 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> ) > > 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 > > > > >

