SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.
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.