Components Flex




    
        
        import mx.collections.ArrayCollection;
        [Bindable]
        private var expensesAC:ArrayCollection = new ArrayCollection( [
            { Month: "Jan", Profit: 2000, Expenses: 1500, Amount: 450 },
            { Month: "Feb", Profit: 1000, Expenses: 200, Amount: 600 },
            { Month: "Mar", Profit: 1500, Expenses: 500, Amount: 300 },
            { Month: "Apr", Profit: 1800, Expenses: 1200, Amount: 900 },
            { Month: "May", Profit: 2400, Expenses: 575, Amount: 500 } ]);
        private function selectItems(event:Event):void {
            // Create an array of all the chart's series.
            var allSeries:Array = myChart.series;
            // Iterate over each series.
            for (var i:int=0; i                var selectedData:Array = [];
                // Iterate over each item in the series.
                for (var j:int=0; j                    if (expensesAC.getItemAt(j).Profit >= Number(threshold.text)) {
                        selectedData.push(j);
                    }
                }
                // Use the series' selectedIndices property to select all the
                // chart items that met the criteria.
                allSeries[i].selectedIndices = selectedData;
            }
        }
      
    

    
                    dataProvider="{expensesAC}" selectionMode="multiple">
            
                                    displayName="Expenses/Profit" selectable="true" />
                                    displayName="Amount/Expenses" selectable="true" />
                                    displayName="Profit/Amount" selectable="true" />