I am implementing two crosshair cursors using labels for winforms chart after following tutorials on youtube. I am using the cursors to find the values on my graph but I need to find the max and minimum positions of the x-yaxis in order to prevent overrange exception
My approach was to find the crossing of the axis inorder to find the minimum and maximum as following:
Minimum: crossing of primary x- and yaxis Max: crossing of primary x- and yaxis + width and height.
Here is a picture of the point I am trying to find the pixel value for