how to display value (X-axis & Y-axis) of a point in graph ?

2012-12-10
2012-12-10
  • I'd like to isplay value (X-axis & Y-axis) of a point in graph when moving mouse to this point ! how can i do this ? waiting for your help ! ^~^

     
    • Aaron Laws
      Aaron Laws
      2012-12-10

      On Mon, Dec 10, 2012 at 8:55 AM, Chanh Quang Nguyen nqchanh@users.sf.netwrote:

      I'd like to isplay value (X-axis & Y-axis) of a point in graph when moving
      mouse to this point ! how can i do this ? waiting for your help ! ^~^


      I haven't used Zed in a while, but I thought this is the default behaviour.

       
  • justunme0805
    justunme0805
    2012-12-10

    you have to use the pointvalue event of the zedgraph.

    private string zedGraphControl1_PointValueEvent(ZedGraphControl sender, GraphPane pane, CurveItem curve, int iPt)
    {
    return "(" + curve.Label.Text + ") - (Sequence No. "+curve.Points[iPt].Tag.ToString()+") - Length:" + curve.Points[iPt].X.ToString() + ")-" + " (Elevation:" + curve.Points[iPt].Y.ToString() + ")";
    }

    Now when you move your mouse along the curve it will display the xy on the graph