Hi,

Came across a bit of an annoyance this morning...

I've got a dual-axis chart which displays a LineSeries and a ColumnSeries.  I'd like to use the same dataTipFunction for both Series.  However, if I try to access the yField inside the function for the particular series, I need to cast the type.  Because I'm using two different Series types, this isn't going to fly, but if I relegate to the parent Series class, it doesn't contain the yField property and I get a compile time error.  Ideas?

Here's the snippet:

returnString += NumberFormatters.thousandsSeperated.format(event.hitData.item[Series(event.hitData.element).yField]) + "\n";
                                                                                                                           ^
                                                                                                            where the problem occurs

Thanks,

Brendan


               
__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to