I guesss I should have been clearer in my second post. I know your just trying to make sure I'm not wasting my energy on a pointless solution.
I can find the distance from where I clicked to to any given data point in
graph units not pixels. I can use that to tell which data point my click was closest to.
I just need pixel color to determine if any point, as it is displayed on the screen, was clicked on.
psuedocode:
Click_Event
{
get pixel color;
if(pixel color matches that of a data point)
{
calculate graph distance from click to all of the data points;
set point clicked on to data point with shortest graph distance;
}
}