I have a list of Series and each series has different number of datapoints. In my application the user can check a series in a listview and see the plotted points at a chart. I want to add a vertical annotation in order to see the Y value of each signal a the user moves the annotation position. Here is what I have tried so far
private void chart1_AnnotationPositionChanging(object sender, AnnotationPositionChangingEventArgs e)
{
var pt1 = (int)VA.X;
int i = 0;
foreach (var signal in Signals)
{
valtot = signal.Points[pt1].YValues[0];
listView1.Items[i].SubItems[1].Text = valtot.ToString();
i++;
}
The problem is that I do not get all points with this solution. I want to move across all datapoints as the user drags the annotation.