Adding custom ticker label to Y Axis

Looking to recreate this. Would be nice for it to be inline with a chart stripline

1 Reply

DS Durgadevi Selvaraj Syncfusion Team January 30, 2018 02:11 PM UTC

Hi Dean, 
 
Thanks for contacting Syncfusion Support. 
 
We have analyzed your requirement (Adding custom label to yAxis) based on provided information and image. It can be achieved by setting ShowAxisLabel as True to the HorizontalLineAnnotation as shown in below code, 
 
Code Snippet[XAML] 
<chart:SfChart.Annotations> 
                <chart:HorizontalLineAnnotation Y1="862" ShowAxisLabel="True" CanDrag="True"/> 
  </chart:SfChart.Annotations> 
 
Please find the output screenshot below, 
 
Also, you can collapse the line by setting Stroke as Transparent to the HorizontalLineAnnotation as like in below code, 
 
Code Snippet[XAML] 
<chart:SfChart.Annotations> 
                <chart:HorizontalLineAnnotation Y1="862" Stroke="Transparent" ShowAxisLabel="True" CanDrag="True"> 
                    
                </chart:HorizontalLineAnnotation> 
            </chart:SfChart.Annotations> 
 
Please find the output screenshot below, 
 
We have prepared a simple sample based on your requirement and it can be downloaded from below link, 
 
You can refer our UG Documentation link to know more about annotations in SfChart, 
 
Please let us know if you have any concerns. 
 
Regards,  
Durgadevi S 


Loader.
Up arrow icon