Chart Flex




    
        import mx.collections.ArrayCollection;
        import mx.charts.HitData;
        import mx.charts.series.ColumnSeries;
        [Bindable]
        public var dataSet:ArrayCollection = new ArrayCollection([
            {Month:"Jan", Expenses:1500, Income:1590},
            {Month:"Feb", Expenses:1200, Income:1300},
            {Month:"Mar", Expenses:750, Income:900}
            ]);
        public var b:Boolean = true;
        public function myDataTipFunction(e:HitData):String {
            var s:String;
            s = ColumnSeries(e.element).displayName + "\n";
            s += "Profit: $" + (e.item.Income - e.item.Expenses);
            return s;
        }
      

    
                    showDataTips="true" dataTipFunction="myDataTipFunction">