Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Creating dynamic charts from an external file
Author: Sas Jacobs
| Website: http://www.sasjacobs.com |
Actionscript for frame 3
Frame 3 should contain the following code:
//create arrays containing variables
ArrLabel = loading.ChartLabels.split(",");
ArrValue = loading.ChartValues.split(",");
var ChartData = new DataProviderClass();
for (var i=0; i < ArrLabel.length; i++) {
ChartData.addItem({DataLabel:ArrLabel[i], DataValue:ArrValue[i]});
}
MyChart.setDataProvider(ChartData);
MyChart.setLabelSource("DataLabel");
MyChart.setValueSource("DataValue");
| » Level Intermediate |
|
|
Added: : 2002-07-14
Rating: 7.73 Votes: 28
Hits: 1756
|
| » Author |
|
Applications Developer
Marconi Australia
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (107 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|