Chart Annotations with Text

I'm trying to add annotations to my charts. These annotations may require word wrap but I can't figure out how to enable multi line (or just word wrap) for any of the annotations that allow text.

Here's what it looks like now,

But I need it more to like this,

The outlining and such I can figure out, but need help with the wrapping.

Is this possible?

1 Reply

MP Michael Prabhu M Syncfusion Team October 30, 2018 07:17 AM UTC

Hi Mark, 
Greetings from Syncfusion, currently, we do not have wrap support in text annotation. But we can achieve this requirement with the help of the ViewAnnotation. We have prepared a simple sample for your requirement and it can be downloaded from the below link. 
Code snippet [XAML] 
  <chart:SfChart.ChartAnnotations> 
      <chart:ViewAnnotation X1="40" Y1="40" VerticalAlignment="Start" > 
           <chart:ViewAnnotation.View> 
               <StackLayout> 
                  <Label x:Name="label" Text="2 Hours&#x0a;between&#x0a;prompts"/> 
               </StackLayout> 
           </chart:ViewAnnotation.View> 
      </chart:ViewAnnotation> 
   </chart:SfChart.ChartAnnotations> 
 
 
Screenshot: 
 
Regards, 
Michael 
 


Loader.
Up arrow icon