Mega Code Archive
Add an image to the chart and manipulate its propertiess
import mx.collections.ArrayCollection;
import mx.collections.ArrayCollection;
import mx.graphics.SolidColor;
import mx.charts.GridLines;
import mx.charts.ColumnChart;
[Embed(source="a.jpg")]
public var butterfly:Class;
public function addButterfly():void {
var b:Object = new butterfly();
b.alpha = .2;
myChart.backgroundElements = [ b ];
}
[Bindable]
public var expenses:ArrayCollection = new ArrayCollection([
{month:"Jan", profit:20, expenses:15, amount:145},
{month:"Feb", profit:1, expenses:2, amount:60},
{month:"Mar", profit:15, expenses:5, amount:3}
]);