Skip to main content

AxisStyle.MinorTickmarksVisible Property

Specifies whether minor tickmarks are displayed on an axis.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

NuGet Package: DevExpress.XamarinForms.Charts

Declaration

public DefaultBoolean MinorTickmarksVisible { get; set; }

Property Value

Type Description
DefaultBoolean

A DefaultBoolean value that specifies whether tickmarks 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

Tickmarks (major and minor) divide an axis into equal sections by a step whose value is determined by the special options of an axis. Tickmarks are hidden by default. Set the MinorTickmarksVisible property to True to show minor tickmarks on an axis. To change minor tickmark thickness and length, use the MinorTickmarksThickness and MinorTickmarksLength properties, respectively.

To show and customize major tickmarks, use the MajorTickmarksVisible, MajorTickmarksThickness and MajorTickmarksLength 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="http://schemas.devexpress.com/xamarin/2014/forms/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