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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Why is my graph turning out like this?

Thread ID:

Created:

Updated:

Platform:

Replies:

147737 Sep 22,2019 10:29 PM UTC Mar 23,2020 04:08 AM UTC Xamarin.Forms 3
loading
Tags: SfChart
Topsy K
Asked On September 22, 2019 10:29 PM UTC

Hi

Im creating a SF area chart in Xamarin forms using Syncfusion.

I cant figure out why the category on the X axis is not showing fully.
If there were 4 categories, the last one always gets cut in half.

https://ibb.co/FKZnQYz

You can view the photo there.

Any idea's please?



Geetha Rajendran [Syncfusion]
Replied On September 23, 2019 06:14 AM UTC

Hi Topsy, 
  
You can avoid the edge label cut off by using any of the below solutions. 
  
Solution 1: 
Solve by setting PlotOffset property to apply padding to the plot area which is available in ChartAxis. Please refer the below code. 
    
Code snippet[C#]: 
<chart:SfChart.PrimaryAxis> 
    <chart:CategoryAxis PlotOffset="10"> 
    </chart:CategoryAxis> 
</chart:SfChart.PrimaryAxis> 
  
  
Screenshot: 
 
  
Solution 2: 
By setting LabelPlacement as BetweenTicks to place the axis labels between the ticks to avoid the label cut off. Please refer the below code. 
  
Code snippet[C#]: 
<chart:SfChart.PrimaryAxis> 
    <chart:CategoryAxis LabelPlacement="BetweenTicks" > 
    </chart:CategoryAxis> 
</chart:SfChart.PrimaryAxis> 
  
  
Screenshot: 
 
  
Please refer the below KB: 
  
  
Regards, 
Geetha R. 


Topsy K
Replied On March 23, 2020 12:20 AM UTC

This worked Geetah. Thank you

Suyamburaja Jayakumar [Syncfusion]
Replied On March 23, 2020 04:08 AM UTC

Hi Topsy K,  
  
We are glad to hear that your requirement has been achieved.  
  
Please let us know if you need any further assistance on this.  
  
Regards,  
Suyamburaja J. 


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.

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

Live Chat Icon For mobile
Live Chat Icon