Display default point values ​​on ZedGraph

I create and display ZedGraph in WinForm. When I draw correctly on the chart, there is an option for “show point values”. When this is turned on, hovering over a point will give the X / Y values ​​for that point.

  • Is there any way to enable this by default.
  • My X-Axis is XDate. I know how to set the scale format on the X axis, but how can I set the format in a tooltip?
+5
source share
1 answer

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.

+11
source

All Articles