2D Chart for WinForms | ComponentOne
Chart Area and Plot Area Objects / Axes / Axis Grid Lines
In This Topic
    Axis Grid Lines
    In This Topic

    Grid lines are lines that appear perpendicular with major/minor tick marks at unit major/minor intervals. The lines that appear perpendicular to an axis at Major intervals are controlled by the GridMajor property and the lines that appear perpendicular to an axis at Minor intervals are controlled by the GridMinor property. Grid lines can help improve the readability of the Chart when you are looking for exact values. The major and minor grid lines appearances are controlled by the ChartGridStyle properties.

    To set the major grid lines appearance properties

    Use the GridMajor property to set the major grid lines appearance properties. The GridMajor property gets the C1.Win.C1Chart.ChartGridStyle object that controls the appearances for the major grid lines.

    To set the minor grid lines appearance properties

    Use the GridMinor property to set the minor grid lines appearance properties. The GridMinor property gets the C1.Win.C1Chart.ChartGridStyle object that controls the appearances for the minor grid lines.

    OnTop

    The OnTop property specifies whether the axis grid lines and tick marks are drawn over the chart image or behind it. Setting this property to True will bring the grid lines and the tick marks to the foreground over the chart image, while setting it to False will bring the chart image to the foreground.

    See Also