Or you could just use chart.series.indexOf(chartItem.element), which would return the index of that particular series in the series array of ChartBase
Thanks -Sunil From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of EddieBerman Sent: Wednesday, April 16, 2008 9:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Stack Chart ItemClick detail? I couldn't find that info either. The solution I'm using, until I learn of a more direct way, is to assign a number to the ColumnSeries Name property when I create each ColumnSeries (I happen to use "Series0", "Series1", "Series2", etc). Here's the relevant code fragmants for creating, and then accessing the column number. // Creating the columns private const SeriesName:String = "Series"; for (var c:int = 1; c < seriesCount; c++) { var cs:ColumnSeries = new ColumnSeries(); cs.name = SeriesName + id; // "Series0", "Series1", "Series2",etc etc... } // Accessing the clicked column's data public function chartItemSelected (e:ChartItemEvent):void { // extract the number after "Series" var str:String = e.hitData.chartItem.element.name.substr(SeriesName.length, e.hitData.chartItem.element.name.length); var colNum:Number = parseInt(str); } Hope that helps, and/or we learn of a better way. -Eddie --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "securenetfreedom" <[EMAIL PROTECTED]> wrote: > > Is there a way to click on a stacked ColumnChart and receive data > about the specific segment of ColumnChart stack that was clicked? > > I am using mx.charts.events.ChartItemEvent but I can't find anything > in the event object that identifies the exact slice that was clicked. > > Thanks. Jeff >
<<image001.jpg>>
<<image002.jpg>>