I have a chart control which shows a curved line. I want to add crosshairs so when a user mouses over, I can locate the position that x and y coordinates and figure out the value of the line at that point.
I can add them using this:
I am not sure how to capture the values as it relates to my line though.
Here is the code to create my line:
List<double> theoreticalPrices = new List<double>();
for (double i = 0; i < 100; i = i + .1)
foreach (OrderChain.OpenContracts openContractse in TsalChain.GetOpenContracts
totalAtThisStrike += openContractse.price;
new DataPoint(i, totalAtThisStrike));
hartType = SeriesChartType.Line;