import mx.graphics.SolidColor;
import mx.graphics.Stroke;
import mx.charts.GridLines;
import mx.collections.ArrayCollection;
[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}
]);
[Bindable]
public var bge:GridLines;
public function addGridLines():void {
bge = new GridLines();
var s:Stroke = new Stroke(0xff00ff, 2);
bge.setStyle("horizontalStroke", s);
var f:SolidColor = new SolidColor(0x990033, .3);
bge.setStyle("horizontalFill",f);
var f2:SolidColor = new SolidColor(0x336699, .3);
bge.setStyle("horizontalAlternateFill",f2);
myChart.backgroundElements = [bge];
}
creationComplete="addGridLines()">
categoryField="Month" />
displayName="Profit" />
displayName="Expenses" />