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 [email protected], "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
>


Reply via email to