【发布时间】:2020-01-08 18:23:51
【问题描述】:
我在我的 Syncfusion 图表上实现了一些 HorizontalLineAnnotation 元素,它运行良好。但是,我找不到控制文本大小和颜色的注释的属性,以及注释标签的属性。
这些似乎都默认呈现蓝色,我在 XAML 或 C# 中没有任何选项来更改这些属性。我看到这些属性可用于其他类型的注释,但对于 HorizontalLineAnnotation 则没有。关于我所缺少的任何帮助?
谢谢。
XAML 代码:
<chart:HorizontalLineAnnotation Y1="48.92" ShowAxisLabel="True" Text="Yesterday's Close" StrokeColor="yellow" FillColor="red" />
C#代码
HorizontalLineAnnotation horizontalLineAnnotation = new HorizontalLineAnnotation()
{
Y1 = 49.92,
ShowAxisLabel = true,
Text = "Today's Open"
};
chart.ChartAnnotations.Add(horizontalLineAnnotation);
【问题讨论】:
标签: c# xamarin syncfusion