VerticalLineAnnotation don't work with transposed series

Hi all,

I try to use the VerticalLineAnnotation in SfChart control with a transposed series.
But the VerticalLineAnnotation is not visible.

The "Interactivity" sample shows the same behavior.

How can I solve this problem?
I use the version 14.03.0.49.

Urs

3 Replies

MK Muneesh Kumar G Syncfusion Team March 20, 2018 06:39 AM UTC

Hi Urs Geser,     
   
Thanks for using Syncfusion products.  
 
We have analyzed your query, we would like to inform you that  need to set annotation X1 value corresponding to primary axis and Y1 value corresponding to secondary axis when series IsTransposed is true. Please refer the below code snippet.  
 
Code snippet [XAML]: 
 
<chart:SfChart.Annotations> 
<chart:VerticalLineAnnotation   Y1="50"  X1="0"> 
</chart:VerticalLineAnnotation> 
</chart:SfChart.Annotations> 
 
<chart:ColumnSeries ItemsSource="{Binding Data}" XBindingPath="XValue" YBindingPath="YValue" IsTransposed="True" /> 
 
Output :  
 
 
 
We have prepared a sample based on this, please find the sample from the following location.  
 
 
Thanks,   
Muneesh Kumar G.   
 



UG Urs Geser March 20, 2018 07:47 AM UTC

Hi Muneesh Kumar,

Thank you for the fast answer.
It works!

Urs


MK Muneesh Kumar G Syncfusion Team March 21, 2018 07:00 AM UTC

Hi Urs Geser,  
 
Thanks for the update. We are glad to know that the given solution works. Please let us know if you need any further assistance. 
 
Thanks, 
Muneesh Kumar G. 


Loader.
Up arrow icon