You can call the graph's GetPlotAt method in the PlotAreaMouseUp event handler to get the plot reference and the x/y data coordinates if the mouse is on a plot point. For example (assuming you have a ScatterGraph or WaveformGraph called graph):
private void OnGraphPlotAreaMouseUp(object sender, MouseEventArgs e)
{
double xData, yData;
XYPlot plot = graph.GetPlotAt(e.X, e.Y, out xData, out yData);
if (plot != null)
{
// ...
}
}
If GetPlotAt returns null, the mouse is not on a plot data point. There are also overloads that will give you just the plot reference, the plot reference and the index into the plot data, or the plot reference, index into the plot data, and the x/y data points.
- Elton