SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

0
0

I have an annotation that I want to apply a label with specific formatting but it seems that the axis formatting is being used instead.

<sciChart:HorizontalLineAnnotation x:Name="Total" HorizontalAlignment="Stretch" Stroke="Red" StrokeThickness="3" StrokeDashArray="2,2" Y1="{Binding Total}">
<sciChart:AnnotationLabel LabelPlacement="TopLeft" FontSize="16" Text="{Binding Path=DataContext.Total, StringFormat=This is my formatted total: {0}}" />
</sciChart:HorizontalLineAnnotation>

  • You must to post comments
0
0

Hi there,

Please, try using AnontationLabel.TextFormatting property or LabelTextFormatting property on HorizontalLineAnnotation. Let us know if this helps,

Regards,
Yuriy

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.