To customize the tooltip text, you must subscribe the
PointValueEvent
:
{
zedGraphControl1.PointValueEvent += new ZedGraph.ZedGraphControl.PointValueHandler(zedGraphControl1_PointValueEvent);
...
}
string zedGraphControl1_PointValueEvent(
ZedGraph.ZedGraphControl sender, ZedGraph.GraphPane pane,
ZedGraph.CurveItem curve, int iPt)
{
return return "X = " + curve[iPt].X.ToString() + " Y = " + curve[iPt].Y.ToString() + " Name = " + curve.Label.Text;
}