xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
height="600">
import mx.graphics.LinearGradient;
import mx.graphics.GradientEntry;
import mx.collections.ArrayCollection;
import mx.collections.ArrayCollection;
[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}
]);
private function styleChart():void {
var ge1:GradientEntry = new GradientEntry(0xCCFF99, 0);
var ge2:GradientEntry = new GradientEntry(0x99FF00, .33);
var ge3:GradientEntry = new GradientEntry(0x669900, .66);
var lg1:LinearGradient = new LinearGradient();
lg1.entries = [ge1, ge2, ge3];
myChart.setStyle("fill", lg1);
}
showDataTips="true" creationComplete="styleChart()">