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

Fixed X-axis position in SfChart

Hello,
is it possible to make x-axis be on fixed position relative to bottom of view?
As seen in the image, labels for columns on x-axis have different lengths, so when scrolling x-axis "jumps" up and down, according to height of longest label (name of month) in current scope. I am wondering is there a way to declare fixed margin for x-axis e.g fixed space for labels? Or any other way to solve this issue?

2 Replies

BO Boris December 9, 2016 02:08 PM UTC



PS Parthiban Sundaram Syncfusion Team December 13, 2016 10:34 AM UTC

Hi Boris,

Thanks for using Syncfusion products.

You can use the “LabelExtent” property to set the fixed space for axis labels. 
C# 
xAxis.LabelExtent = 50; 
 
XAML: 
<chart:CategoryAxis LabelExtent ="50"/>  
 
 
Regards,
Parthiban S
 


Loader.
Up arrow icon