Welcome, Guest. Please login or register.
Did you miss your activation email?
10 Mar 2010, 08:24:27 UTC
Forum home
+  flexdeveloper.eu Forum
|-+  Flex and ActionScript 3.0
| |-+  Flex Charting (Moderators: JMWhittaker, Jan K, thewarpedcoder, James)
| | |-+  Chart animation
« previous next »
Pages: [1] Print
Author Topic: Chart animation (Read 185 times)
JonoB
Newbie FD
*
Posts: 16


« on: 03 Feb 2010, 15:23:48 UTC »

I'm creating chart series in AS, which is working fine. However, the animation doesnt seem to work.

Code:
private function createChart():void {

var mySeries:Array = new Array();
var myInterpolate:SeriesInterpolate = new SeriesInterpolate();
myInterpolate.duration = 1000;

for(var item:String in model.bank_summary_chart[0]) {
if (item != 'date_trans') {
var myLineSeries:LineSeries = new LineSeries();
myLineSeries.yField = item;
myLineSeries.xField = 'date_trans';
myLineSeries.displayName = item;
myLineSeries.setStyle('form','curve');
myLineSeries.setStyle('showDataEffect', myInterpolate); // This line doesnt work at all
mySeries.push(myLineSeries);
}
}
myChart.invalidateSeriesStyles();
myChart.series = mySeries;
callLater(setDataProvider);
}


private function setDataProvider():void {
myChart.dataProvider = model.bank_summary_chart;
}

Am I missing something really obvious here?
« Last Edit: 03 Feb 2010, 15:27:54 UTC by JonoB » Logged
Pages: [1] Print
« previous next »
Share this on: Twitter Twitter Del.icio.us del.icio.us Digg Digg
Jump to:

©2006-2010 Flexdeveloper.eu/Jodie O'Rourke. All rights reserved.
Adobe®, Adobe® Flash™, Adobe® AIR™ and Adobe® Flex™ are registered trademarks of Adobe Systems Incorporated in the United States and other countries. All rights reserved.

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC