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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Fixed X-axis position in SfChart

Thread ID:





127804 Dec 9,2016 02:07 PM UTC Dec 13,2016 10:34 AM UTC Xamarin.Forms 2
Tags: SfChart
Asked On December 9, 2016 02:07 PM UTC

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?

Replied On December 9, 2016 02:08 PM UTC

Parthiban Sundaram [Syncfusion]
Replied On 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. 
xAxis.LabelExtent = 50; 
<chart:CategoryAxis LabelExtent ="50"/>  
Parthiban S


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon