# Major Tick Overlap

## Content



You can determine the overlap value for the major tick mark by specifying a value range from 0 to 1 for the [MajorTickOverlap](/componentone/api/wpf/online-chart/dotnet-framework-api/C1.WPF.C1Chart.4.6.2/C1.WPF.C1Chart.Axis.MajorTickOverlap.html) property. The default value is 0, which means there is no overlap. When the overlap is 1, the whole tick is inside the plot area. As you increase the **MajorTickOverlap** value for the X-Axis, the tick mark moves up and down as you decrease the value. As you increase the **MajorTickOverlap** value for the Y-Axis the tick mark moves to the left.

```csharp
c1Chart1.Reset(true);
c1Chart1.Data.Children.Add(
new DataSeries() { ValuesSource = new double[] { 1, 2, 1, 2 } });
c1Chart1.ChartType = ChartType.LineSymbols;
c1Chart1.View.AxisX.MajorGridStrokeThickness = 0;
c1Chart1.View.AxisX.MajorTickThickness = 3;
c1Chart1.View.AxisX.MajorTickHeight = 10;
c1Chart1.View.AxisX.MajorTickOverlap = 0;
c1Chart1.View.AxisY.MajorGridStrokeThickness = 0;
c1Chart1.View.AxisY.MajorTickThickness = 3;
c1Chart1.View.AxisY.MajorTickHeight = 10;
c1Chart1.View.AxisY.MajorTickOverlap = 0;
```

The following image displays the **MajorTickOverlap** value as zero:

![](https://cdn.mescius.io/document-site-files/images/9e1b6c55-78c5-4648-896a-23e777db9f27/images/graphics/t209featuresaxistickoverlap.png)

## See Also

[Minor Tick Overlap](/componentone/docs/wpf/online-chart/overview/ChartFeatures/Axis/TickMarksa/Minorverlap)