We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Align Y-Axis to the right of the chart

Hello,

I'd like to know if there is an easy way of aligning the Y-Axis of a serie to the right of the chart. HorizontalAlignment doesn't seem to work and if I understood correctly, Axes are rendered in a StackPanel on the left so I'm a bit dubious about being able to align it on the other side.

Thank you,

T.V.

3 Replies

DA Devi Aruna Maharasi Murugan Syncfusion Team February 16, 2017 12:22 PM UTC

Hi Varnier, 
  
Thanks for contacting Syncfusion Support. 
  
We can place the SecondaryAxis(YAXis) of SfChart to the right side of chart by enabling the OpposedPosition property of the chart axis as shown in the below code snippet, 
 
<chart:SfChart.SecondaryAxis> 
     <chart:NumericalAxis OpposedPosition="True"/> 
</chart:SfChart.SecondaryAxis> 
  
We have prepared a demo sample based on your requirement and it can be downloaded from below link, 
  
Sample: Axis128907 
  
Regards, 
Devi 
 





VA Varnier February 17, 2017 08:19 AM UTC

Hello,

Thank you for your answer, this works perfectly :)

Regards,

T.V.


SA Santhiya Arulsamy Syncfusion Team February 20, 2017 05:00 AM UTC

Hi Varnier,

We are glad to know your problem has been solved.

Let us know if you need any further assistance on this

Thanks,
Santhiya A

Loader.
Live Chat Icon For mobile
Up arrow icon