SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
I’m displaying some VerticalLineAnnotations (with ShowLabel=”true”) but the label text always appears white, and I can’t seem to change this. I’ve tried setting the Foreground both in the style and directly on the control declaration, but it gets ignored. I’m using v2.2.5014 if that makes a difference.
Thanks in advance
Thanks for reporting this!
The font color is bound to the annotation’s Stroke property by default. So setting it directly should override all bindings. We’ll check this behavior and try to fix it.
To work around, please, try setting the property on the label directly:
<s:VerticalLineAnnotation ShowLabel="False" ...> <s:AnnotationLabel LabelPlacement="TopRight" Text="Bottom-aligned" Forground="Red"/> </s:VerticalLineAnnotation>
Hope this helps!
Please login first to submit.