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

SFChart - Grid Color?

Hi

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,

ade

3 Replies

GM Gobi M Syncfusion Team 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.  
 
Regards, 
Gobi M 



AR Ade Rutter April 28, 2016 08:44 AM UTC

awesome, may thanks :)


GM Gobi M Syncfusion Team April 29, 2016 05:50 AM UTC

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


Loader.
Live Chat Icon For mobile
Up arrow icon