I am drawing a curve in Zedgraph like this:
GraphPane myPane = zgc.GraphPane;
PointPairList list1 = new PointPairList();
for(int i =0; i<10; i++)
list1.Add(i,i);
LineItem myCurve = myPane.AddCurve("Title",
list1, Color.Red, SymbolType.None);
zgc.AxisChange();
zgc.Refresh();
How can I display a cursor (or any other graphic object) at a certain x, y point on myCurve like this:
SetCursor(myCurve, list1[3]);
Knowing specific point of your curve you can use
GraphPane.GeneralTransform(...)methodSo using following code:
would give you coordinates transformed to specific point on screen (in pixels).
Then you need to find some higher-level method (probably in windows forms…) that would move your cursor to that point.