import mx.collections.ArrayCollection;
import mx.graphics.SolidColor;
import mx.charts.GridLines;
[Bindable]
public var expenses:ArrayCollection = new ArrayCollection([
{Month:"Jan", Profit:2000, Expenses:1500},
{Month:"Feb", Profit:1000, Expenses:200},
{Month:"Mar", Profit:1500, Expenses:500}
]);
[Embed(source="a.gif")]
public var bird:Class;
public function updateGridLines():void {
var bgi:GridLines = new GridLines();
var s:Stroke = new Stroke(0xff00ff, 3);
bgi.setStyle("horizontalStroke",s);
var c:SolidColor = new SolidColor(0x990033, .2);
bgi.setStyle("horizontalFill",c);
var c2:SolidColor = new SolidColor(0x999933, .2);
bgi.setStyle("horizontalAlternateFill",c2);
myChart.annotationElements = [bgi]
var b:Object = new bird();
b.alpha = .2;
b.height = 150;
b.width = 150;
myChart.backgroundElements = [ b ];
}
categoryField="Month" />
displayName="Profit" />
displayName="Expenses" />
alpha=".3" />
label="Update Grid Lines" />