How to: Display Axis Labels Between Tickmarks
To display labels between tickmarks, do the following.
- Set the minor tickmark number to 1 using the axis’ AxisBase.MinorCount property.
- Set the Axis2D.TickmarksMinorLength property to 5 - this is default length of major tickmarks.
- Hide major tickmarks using the Axis2D.TickmarksVisible property.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-display-axis-labels-between-tickmarks-t326788.
<dxc:XYDiagram2D.AxisX>
<dxc:AxisX2D MinorCount="1"
TickmarksMinorLength="5"
TickmarksVisible="False"/>
</dxc:XYDiagram2D.AxisX>