5

I'm building and displaying a ZedGraph in a WinForm. When I rightclick on the graph, there is an option for "show point values". When that's enabled, hovering over a point will give the X/Y values for that point.

  1. Is there a way to have this enabled by default.
  2. My X-Axis is an XDate. I know how to set the scale format on the X-Axis, but how can I set the format in the tooltip?
Stealth Rabbi
  • 10,156
  • 22
  • 100
  • 176

1 Answers1

11

When your form is initialized, do something like:

var zgc = msGraphControl1.zedGraphControl1;

zgc.IsShowPointValues = true;
zgc.PointValueFormat = "0.000";
zgc.PointDateFormat = "d";

That should do it.

Otiel
  • 18,404
  • 16
  • 78
  • 126
Gordon Slysz
  • 1,083
  • 12
  • 23