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.
Syncfusion Feedback

How to show/hide grid lines?

You can show or hide the major and minor grid lines of a chart axis using the ShowMajorGridLines and ShowMinorGridLines properties of the respective axis. The default value of these properties is true.

XAML

 

C#

 

Output

C:\Users\yuvaraj.palanisamy\Pictures\android2.png

Article ID: Published Date: Last Revised Date: Platform: Control:
5520 10/29/2015 03/05/2018 Xamarin.Forms SfChart
Did you find this information helpful?
Comments
Narasimha Murthy Jun 14, 2018

Is there a way to force display all grid lines for Primary axes? 

Reply
Divya Venkatesan [Syncfusion] Jun 14, 2018

Hi Narasimha,

 

You can show the all the gridLines by setting the ShowMajorGridLines property of axis as true.

 

Code snippets[Xaml]:

<chart:SfChart.PrimaryAxis>

    <chart:CategoryAxis ShowMajorGridLines="True"/>

chart:SfChart.PrimaryAxis>

 

Code snippets[C#]:

Chart.PrimaryAxis.ShowMajorGridLines = true;

 

Regards,

Divya Venkatesan

 

Add Comment
You must log in to leave a comment

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