I was mis-interpreting the error message on this.  
 
The problem was that for a line chart click event, the event handler
tries to figure out datapoint was clicked by doing -- among other things
-- 
 
props = ColumnSeries(hitData.element).displayName;
 
Well obviously I need to be using LineSeries(hitData.element).
 
So my question is this:  How do I tell if the object that kicked it off
is a Line chart or a column chart?
 
The other way I was approaching this is to say  "if this event came from
the object with this id"  but I dont know how to do that either.
 
???
brad

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Brad Bueche
Sent: Wednesday, February 13, 2008 2:52 PM
To: [email protected]
Subject: [flexcoders] Convert LineSeries to ColumnSeries





When I drill down from a LineSeries based chart to a ColumnSeries based
chart.
 
I get the following error:
 
TypeError: Error #1034: Type Coercion failed: cannot convert
mx.charts.series::[EMAIL PROTECTED] to mx.charts.series.ColumnSeries.
 
Is there way to get around this?
 
The perplexing thing is that I CAN drill down from a ColumnSeries chart
to a LineSeries chart with no problem.
 
???
brad



 

Reply via email to