【发布时间】:2019-12-16 22:57:02
【问题描述】:
我使用 C# 和 Oxyplot。
我有一个 LineAnnotation 我想添加一个文本。
所以我为 LineAnnotation 设置了 Text 属性,但是文本是垂直对齐的。
如何将文本(1..3 行)添加到 LineAnnotation 并且文本水平显示,以便用户阅读?
不好:
我想要什么:
LineAnnotation Markerline = new LineAnnotation();
Markerline.Color = OxyColors.Blue;
Markerline.LineStyle = LineStyle.Solid;
Markerline.StrokeThickness = 5;
Markerline.Type = LineAnnotationType.Vertical;
Markerline.XAxisKey = "x1";
Markerline.YAxisKey = yAxisKey;
Markerline.Tag = "Marker";
Markerline.Text = "Hello World"; //how to display on top of Markerline horizontally ?
【问题讨论】:
标签: oxyplot