zedGraphControl1.GraphPane.CurveList.Clear();
GraphPane mygraphpane = zedGraphControl1.GraphPane;
PointPairList p1 = new PointPairList(time, distance);
LineItem c1 = mygraphpane.AddCurve("Best Solution", p1, Color.Black);
I am using this code, time & distance changed on every mouse click, but it still showing a straight line. Is there any thing missing here?
I think you should call
myGraph.AxisChange()to notify axis change occurred. (I guess you will change the axis in your method):