# Minor Ticks and Stripes

As of **R2 2022** the RadChartView control allows you to display **minor ticks and stripes** in addition to the major ticks and stripes.

## Minor Ticks

The minor ticks functionality is supported by the following types of axes:

* `NumericalAxis` (`LinearAxis` and `LogarithmicAxis`)
* `DateTimeContinuousAxis`
* `PolarAxis`
* `NumericRadialAxis`

The visibility and appearance of the minor ticks can be controlled via the following properties of these axes:

* `MinorTicksPerMajor`—The number of minor ticks per major interval.
* `MinorTickLength`—The length of the minor tick.
* `MinorTickOffset`—Index-based offset of the first tick to be displayed.
* `MinorTickTemplate`—The template that defines the appearance of all minor ticks present on the axis.
* `MinorTickStyle`—The style for each `Rectangle` instance created to represent a minor tick when no `MinorTickTemplate` is specified.

**Cartesian Chart with customized minor ticks**

```XAML
<telerik:RadCartesianChart>
    <telerik:RadCartesianChart.HorizontalAxis>
        <telerik:LinearAxis Maximum="100"
                            DesiredTickCount="10" 
                            MinorTicksPerMajor="3"
                            MinorTickLength="10">
            <telerik:LinearAxis.MinorTickStyle>
                <Style TargetType="Rectangle">
                    <Setter Property="Fill" Value="Blue" />
                </Style>
            </telerik:LinearAxis.MinorTickStyle>
        </telerik:LinearAxis>
    </telerik:RadCartesianChart.HorizontalAxis>
    <telerik:RadCartesianChart.VerticalAxis>
        <telerik:LinearAxis Maximum="100" />
    </telerik:RadCartesianChart.VerticalAxis>
    <telerik:RadCartesianChart.Series>
        <telerik:ScatterPointSeries>
            <telerik:ScatterPointSeries.DataPoints>
                
            </telerik:ScatterPointSeries.DataPoints>
        </telerik:ScatterPointSeries>
    </telerik:RadCartesianChart.Series>
</telerik:RadCartesianChart>
```

![Cartesian Chart with customized minor ticks](https://www.telerik.com/products/wpf/documentation/assets/7b7822a9f12a279c1a6a31ae6aad15c4/radchartview-minor-ticks-and-stripes-0.png)

## Stripes

In addition to the new minor tick functionality, both the [CartesianChartGrid](https://www.telerik.com/products/wpf/documentation/controls/radchartview/features/cartesianchartgrid-and-polarchartgrid#cartesianchartgrid) and [PolarChartGrid](https://www.telerik.com/products/wpf/documentation/controls/radchartview/features/cartesianchartgrid-and-polarchartgrid#polarchartgrid) now expose properties to control the visibility and appearance of the minor grid and strip lines.

### CartesianChartGrid

The CartesianChartGrid provides the following properties for customization of the grid and strip lines:

* `MinorLinesVisibility`—The visibility of minor grid lines. A value of type `GridLineVisibility` which can be either `None`, `X`, `Y` or `XY`.
* `MinorStripLinesVisibility`—The visibility of the grid's stripes. A value of type `GridLineVisibility` which can be either `None`, `X`, `Y` or `XY`.
* `MinorXLineStyle`—The style that defines the appearance of the minor lines along the X-axis.
* `MinorYLineStyle`—The style that defines the appearance of the minor lines along the Y-axis.
* `MinorXLineDashArray`—The dash array used to define each minor X-line StrokeDashArray
* `MinorYLineDashArray`—The dash array used to define each minor X-line StrokeDashArray

**Cartesian Chart with customized CartesianChartGrid**

```XAML
<telerik:RadCartesianChart>
    <telerik:RadCartesianChart.Grid>
        <telerik:CartesianChartGrid MajorLinesVisibility="None"
                            MinorLinesVisibility="X"
                            StripLinesVisibility="None"
                            MinorStripLinesVisibility="X"
                            MinorXLineDashArray="6 3">
            <telerik:CartesianChartGrid.MinorXLineStyle>
                <Style TargetType="Line">
                    <Setter Property="Stroke" Value="Blue" />
                </Style>
            </telerik:CartesianChartGrid.MinorXLineStyle>
        </telerik:CartesianChartGrid>
    </telerik:RadCartesianChart.Grid>
    
</telerik:RadCartesianChart>
```

![Cartesian Chart with customized CartesianChartGrid](https://www.telerik.com/products/wpf/documentation/assets/dcd6e4d7f3d6bc72ab58be7167913ac8/radchartview-minor-ticks-and-stripes-1.png)

### PolarChartGrid

The PolarChartGrid provides the following properties for customization of the grid and strip lines:

* `MinorGridLineVisibility`—The visibility of minor grid lines. A value of type `PolarGridLineVisibility` which can be either `None`, `Radial`, `Polar` or `Both`.
* `MinorStripesVisibility`—The visibility of the grid's stripes. A value of type `PolarGridLineVisibility` which can be either `None`, `Radial`, `Polar` or `Both`.
* `MinorPolarLineStyle`—The style that defines the appearance of the minor polar (radius) lines within the grid.
* `MinorPolarLineDashArray`—The `DoubleCollection` that defines the pattern of the minor polar (radius) lines within the grid.
* `MinorRadialLineStyle`—The style that defines the appearance of the minor radial (angle) lines within the grid.
* `MinorRadialDashArray`—The `DoubleCollection` that defines the pattern of the minor radial (angle) lines within the grid.

**Polar Chart with customized PolarChartGrid**

```XAML
<telerik:RadPolarChart Palette="Windows8">
    <telerik:RadPolarChart.PolarAxis>
        <telerik:PolarAxis MinorTicksPerMajor="1" />
    </telerik:RadPolarChart.PolarAxis>
    <telerik:RadPolarChart.RadialAxis>
        <telerik:NumericRadialAxis MinorTicksPerMajor="2" />
    </telerik:RadPolarChart.RadialAxis>
    <telerik:RadPolarChart.Series>
        <telerik:PolarLineSeries>
            <telerik:PolarLineSeries.DataPoints>
                
            </telerik:PolarLineSeries.DataPoints>
        </telerik:PolarLineSeries>
    </telerik:RadPolarChart.Series>
    <telerik:RadPolarChart.Grid>
        <telerik:PolarChartGrid GridLineVisibility="Both"
                                MinorGridLineVisibility="Both"
                                MinorStripesVisibility="Radial"
                                MinorRadialDashArray="2 1"
                                MinorPolarLineDashArray="6 3">
            <telerik:PolarChartGrid.MinorPolarLineStyle>
                <Style TargetType="Line">
                    <Setter Property="Stroke" Value="Blue" />
                </Style>
            </telerik:PolarChartGrid.MinorPolarLineStyle>
            <telerik:PolarChartGrid.MinorRadialLineStyle>
                <Style TargetType="Ellipse">
                    <Setter Property="Stroke" Value="Red" />
                </Style>
            </telerik:PolarChartGrid.MinorRadialLineStyle>
        </telerik:PolarChartGrid>
    </telerik:RadPolarChart.Grid>
</telerik:RadPolarChart>
```

![Polar Chart with customized PolarChartGrid](https://www.telerik.com/products/wpf/documentation/assets/6cbea03121b8887e68fee7ff67cecaee/radchartview-minor-ticks-and-stripes-2.png)

## See Also

* [Chart Grid](https://www.telerik.com/products/wpf/documentation/controls/radchartview/features/cartesianchartgrid-and-polarchartgrid)
* [Axis](https://www.telerik.com/products/wpf/documentation/controls/radchartview/axes/axis)
