I am attempting to generate a simple Line Chart using
Actionscript, but am unable to get it to draw out the data, even
though it works ok when in mxml, or for that matter assinging the
series with ActionScript to a chart defined with mxml.
The key points of code are below, so if anyone can see where
i'm going wrong, i'd be much grateful.
private function onCreationComplete():void
var linechart:LineChart = new LineChart();
linechart.dataProvider = arr;
var catAxis:CategoryAxis = new CategoryAxis();
catAxis.dataProvider = arr;
var lineSeries:LineSeries = new LineSeries();
lineSeries.yField = "Profit";
var arr:Array = new Array();
linechart.series = arr;