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

SFChart - Grid Color?

Thread ID:





123861 Apr 27,2016 02:59 PM UTC Apr 29,2016 05:50 AM UTC iOS 3
Tags: SfChart
Ade Rutter
Asked On April 27, 2016 02:59 PM UTC


Is it possible to change the color of the grid lines on an sfchart?

actually I want to turn off the vertical grid lines, but making them white would be an option.

Am using Objective-C

Thanks in advance,


Gobi M [Syncfusion]
Replied On April 28, 2016 05:25 AM UTC

Hi Ade, 
Thanks for using Syncfusion products. 
The vertical grid lines visibility can be turned off by setting the value of showMajorGridLines to false. 
​  _chart.primaryAxis.showMajorGridLines = false; 
Still, you could change the color when the gird line is visible by using below code snippet.  
​  _chart.primaryAxis.majorGridLineStyle.lineColor = [UIColor redColor]; 
For more details for Axis customization, refer the below online documentation.  
Please let us know if you need further assistance.  
Gobi M 

Ade Rutter
Replied On April 28, 2016 08:44 AM UTC

awesome, may thanks :)

Gobi M [Syncfusion]
Replied On April 29, 2016 05:50 AM UTC

Hi Ade, 
Thanks for the update. 
Please let us know if you need any further assistance.  
Gobi M 


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