OSDir


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

hitData function. How to Determine the LineSeries I have hit


Hi,
    I have a LineChart:
*<mx:LineChart id="myChartLive"  dataTipFunction="LineChartDataTips">*

 with several LineSeries:
* 
<mx:LineSeries id="LineSeries1" xField="x" yField="yTOP" form="curve"
displayName="CF1" lineStroke="{s1}"/>
<mx:LineSeries id="LineSeries2" xField="x" yField="yBOT" form="curve"
displayName="CF2" lineStroke="{s1}"/>
...     ...
...     ...
*

Anyone any idea how I can tell (within the LineChartDataTips function, which
LineSeries I have
Hit on the chart?

One example from tracing:
*hitData.element
*

Is:
*Algebra_GCSE2.ViewNavigatorApplicationSkin4.navigator.ViewNavigatorSkin6.contentGroup.principalStresses17.SkinnableContainerSkin18.contentGroup.myScroller1.ScrollerSkin73.myVgroup1.myPanel1.PanelSkin119._PanelSkin_Group1.contents.contentGroup.myChartLive.UIComponent129.UIComponent130.LineSeries5*

But I do not know how to convert this to a string, to search for LineSeries5
(In this case)

Help would be greatly appreciated,
Phil.




--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/