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

Why is my graph turning out like this?

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?



3 Replies

GR Geetha Rajendran Syncfusion Team 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. 



TK Topsy K March 23, 2020 12:20 AM UTC

This worked Geetah. Thank you


SJ Suyamburaja Jayakumar Syncfusion Team 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. 


Loader.
Live Chat Icon For mobile
Up arrow icon