Reputation: 5519
I have two questions about axis labels:
And possibly also the same on the XAxis
, showing the time of the last bar.
ZedGraph is awesome. But takes some time to figure out the tricks and tweaks.. :)
Upvotes: 3
Views: 3966
Reputation: 10312
Ad. 1. You probably need to create a custom text object. If I remember correctly:
TextObj label = new TextObj("some text", 1, y2coordinate);
label.Location.CoordinateFrame = CoordType.XChartFractionY2Scale;
label.Location.AlignH = AlignH.Left;
myPane.GraphObjList.Add(label);
to change the color and background, just edit properties of label.FontSpec
Ad. 2.
You need to set manualy the Min
, Max
and MajorStep
of the Scale
object of your axis.
Upvotes: 5