04-20-2010 08:48 AM
I am using the scatterGraph object to display multiple plots. I would like to be able to have the user move the cursor to a point on a plot and let them know which plot data they are looking at. I thought I could get this by using the AfterMoveCursor event and the NationalInstruments.UI.AfterMoveXYCursorEventArgs e class and the e.Cursor.Plot to find out which plot I am using but I am stuck here and cannot find any way for getting the plot index value.
Any help is appreciated,
Thanks Peter
Solved! Go to Solution.
04-20-2010 11:04 AM
Hey Peter -
Does the following help?
NickB
National Instruments
04-20-2010 11:22 AM
Nick,
Thanks this was very helpful. I needed to change it a bit to
int index = scatterGraph1.Plots.IndexOf(e.Cursor.Plot as NationalInstruments.UI.ScatterPlot);
but it works great.
Thanks again,
Peter
04-20-2010 11:48 AM
Doh - I read right over the fact you were using the ScatterGraph. Glad that does it for you!
NickB
National Instruments