ZedGraph Axis Labels

I have two questions about axis labels:

  • How to create a shortcut on the Y2 axis that shows the selected label after the dynamic price (y2 value) of the last bar / candlestick? Like the red mark in this example :

enter image description here

And perhaps the same thing on XAxis, showing the time of the last bar.

  1. I am also interested in how to make a graph of the time axis only every 30 minutes, and also that it should be full hours, and not arbitrary 30-minute spots. As also shown in the above image.

ZedGraph is awesome. But it takes some time to figure out the tricks and tricks .. :)

+3
source share
1 answer

Ad. 1. , . :

TextObj label = new TextObj("some text", 1, y2coordinate);              
label.Location.CoordinateFrame = CoordType.XChartFractionY2Scale;
label.Location.AlignH = AlignH.Left;
myPane.GraphObjList.Add(label);

, label.FontSpec

Ad. 2. Min, Max MajorStep Scale .

+5

Source: https://habr.com/ru/post/1766878/


All Articles