View Full Version : dataTipFunction

08-04-2006, 01:24 PM
I have an array as the dataProvider for my ColumnChart, which has several properties {Name,Target,Amount}, I'm using the overlaid chart type, so I can use the SeriesInterpolate effect (doesn't work with stacked).

Without formatting the dataTips, the values are displayed correctly, albeit not in the format I would like, evidencing that Flex is distinguishing between the varying values.

How do I find out which array value correlates to the current Hitdata being passed for each dataTip? The function accepts a parameter typed "HitData", but how do I access what index value the chart is passing, or the property name (i.e. is it Target or Amount?).

08-07-2006, 09:39 AM
ok target is always the object dispatching the event. the data tip function should contain the information which you are looking for. someone is just checking quickly what it is here in the office.

y = hitdataEvent.item.objectYouPassedIntoTheDataprovid er.key
x = hitdataEvent.childItem.index

08-07-2006, 10:24 AM
Ah great. Will have another look into this, but any extra info would be gratefully received!

08-07-2006, 10:26 AM

08-07-2006, 10:33 AM
yeh, thanks for that.

08-07-2006, 12:02 PM