Showing point values by default on ZedGraph
Asked Answered
S

1

6

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?
Sonnysonobuoy answered 17/5, 2012 at 16:3 Comment(0)
B
12

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.

Bunion answered 17/5, 2012 at 23:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.