import mx.collections.ArrayCollection;
public var p:Point;
[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}
]);
private function updateDetails(e:MouseEvent):void {
p = new Point(myChart.mouseX,myChart.mouseY);
mpos.text = "(" + p.x + "," + p.y + ")";
var d:Array = myChart.localToData(p);
dval.text = "(" + d[0] + "," + Math.floor(d[1]) + ")";
p = myChart.dataToLocal(d[0],d[1]);
dpos.text ="(" + Math.floor(p.x) + "," + Math.floor(p.y) + ")";
}
mouseMove="updateDetails(event)">
categoryField="Month" />
displayName="Profit" />
displayName="Expenses" />