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.

SFChart - Grid Color?

Thread ID:





123861 Apr 27,2016 10:59 AM Apr 29,2016 01:50 AM iOS 3
Tags: SfChart
Ade Rutter
Asked On April 27, 2016 10:59 AM


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 01:25 AM

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 04:44 AM

awesome, may thanks :)

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

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.

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.