Skip to main content
A newer version of this page is available. .

AxisStyle.MinorGridLinesVisible Property

Specifies whether minor grid lines are displayed.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

Declaration

public DefaultBoolean MinorGridLinesVisible { get; set; }

Property Value

Type Description
DefaultBoolean

A DefaultBoolean value that specifies whether grid lines are visible.

Available values:

Name Description
Default

The value is determined by the current object’s parent object setting (e.g., a control setting).

True

Corresponds to a Boolean value of true.

False

Corresponds to a Boolean value of false.

Remarks

Grid Lines (major and minor) are reference lines drawn across an axis from its tickmarks through the entire chart. They are hidden by default. Set the MinorGridLinesVisible property to True to show minor grid lines. To change minor grid line thickness and color, use the MinorGridlinesThickness and MinorGridlinesColor properties, respectively.

To show and customize major grid lines, use the MajorGridlinesVisible, MajorGridlinesThickness and MajorGridlinesColor properties.

Example

This example demonstrates how to use the AxisStyle class properties to customize axis lines, display grid lines and tickmarks with the specified appearance, and enable interlaced color intervals on the chart diagram.

Axis Style

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="ChartAxesExample.MainPage"
             xmlns:dxc="clr-namespace:DevExpress.XamarinForms.Charts;assembly=DevExpress.XamarinForms.Charts">
  <ContentPage.Resources>
    <dxc:AxisStyle x:Key="axisStyle" 
                   LineThickness="1" LineColor="Black"
                   MajorGridlinesVisible="True" MajorGridlinesThickness="1" MajorGridlinesColor="Black"
                   MinorGridLinesVisible="True" MinorGridlinesThickness="1" MinorGridlinesColor="LightGray"
                   MajorTickmarksVisible="True" MajorTickmarksThickness="1" MajorTickmarksLength="15"
                   MinorTickmarksVisible="True" MinorTickmarksThickness="1" MinorTickmarksLength="10"
                   InterlacedVisible="True" />
  </ContentPage.Resources>
  <dxc:ChartView>
    <!--...-->
    <dxc:ChartView.AxisX>
        <dxc:DateTimeAxisX Style="{StaticResource axisStyle}" />
    </dxc:ChartView.AxisX>
    <dxc:ChartView.AxisY>
        <dxc:NumericAxisY Style="{StaticResource axisStyle}"/>
    </dxc:ChartView.AxisY>
  </dxc:ChartView>
</ContentPage>
See Also