我有两个关于轴标签的问题:
- 如何在 Y2 轴上制作标签,以显示最后一个柱/烛台的动态价格(y2 值)后面的突出显示标签?如此示例中的红色标签:
并且可能在 XAxis
上也相同,显示最后一个柱的时间。
- 另外我想知道如何制作每 30 分钟一次的时间轴图,而且它应该是完整的半小时,而不是任意的 30 分钟点..也如上图所示。
ZedGraph 太棒了。但需要一些时间来弄清楚技巧和调整..:)
I have two questions about axis labels:
- How do I make a label at the Y2-axis, that shows a highlighted label following the dynamic price (y2-value) of the last bar/candlestick? As the red label in this example:
And possibly also the same on the XAxis
, showing the time of the last bar.
- Also I wonder how to make the time axis plot only every 30 min, and also that it should be full half hours, not arbitrary 30 min spots.. As also shown in the above image.
ZedGraph is awesome. But takes some time to figure out the tricks and tweaks.. :)
发布评论
评论(1)
广告。 1.
您可能需要创建一个自定义文本对象。如果我没记错的话:
要更改颜色和背景,只需编辑
label.FontSpec
Ad 的属性即可。 2.
您需要手动设置Min、
Max
和MajorStep
/html/T_ZedGraph_Scale.htm" rel="noreferrer">缩放
轴对象。Ad. 1.
You probably need to create a custom text object. If I remember correctly:
to change the color and background, just edit properties of
label.FontSpec
Ad. 2.
You need to set manualy the
Min
,Max
andMajorStep
of theScale
object of your axis.