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.
Unfortunately, activation email could not send to your email. Please try again.

Fixed X-axis position in SfChart

Thread ID:

Created:

Updated:

Platform:

Replies:

127804 Dec 9,2016 09:07 AM Dec 13,2016 05:34 AM Xamarin.Forms 2
loading
Tags: SfChart
Boris
Asked On December 9, 2016 09:07 AM

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?

Boris
Replied On December 9, 2016 09:08 AM


Parthiban Sundaram [Syncfusion]
Replied On December 13, 2016 05:34 AM

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
 


CONFIRMATION

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.

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.

;