You can determine the overlap value for the minor tick mark by specifying a value range from 0 to 1 for the MinorTickOverlap 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.
C# |
Copy Code
|
---|---|
c1Chart1.Reset(true); c1Chart1.Data.Children.Add( new DataSeries() { ValuesSource = new double[] { 1, 2, 1, 2 } }); c1Chart1.ChartType = ChartType.LineSymbols; c1Chart1.View.AxisX.MinorGridStrokeThickness = 0; c1Chart1.View.AxisX.MinorTickThickness = 3; c1Chart1.View.AxisX.MinorTickHeight = 10; c1Chart1.View.AxisX.MinorTickOverlap = .5; c1Chart1.View.AxisY.MinorGridStrokeThickness = 0; c1Chart1.View.AxisY.MinorTickThickness = 3; c1Chart1.View.AxisY.MinorTickHeight = 10; c1Chart1.View.AxisY.MinorTickOverlap = 1; |
The following image depicts a MinorTickOverlap set to "1":