Skip to main content

How to: Display Axis Labels Between Tickmarks

To display labels between tickmarks, do the following.

private void Form1_Load(object sender, EventArgs e) {
    XYDiagram diagram = chartControl1.Diagram as XYDiagram;
    if (diagram == null) return;
    diagram.AxisX.MinorCount = 1;
    diagram.AxisX.Tickmarks.MinorLength = 5;
    diagram.AxisX.Tickmarks.Visible = false;
}