Grid lines and labels

The attributes explained on this page can be found in the Grid, Subgrid and Labels categories.

Visibility of the grid lines

The ShowGrid property determines whether grid lines are displayed. If ShowGrid is enabled, the GridShowHorizontalLines and GridShowVerticalLines properties can be used to specify separately whether horizontal and/or vertical grid lines are visible.

If the horizontal grid lines (or grid lines in general) are disabled, the horizontal sub-grid lines are automatically hidden as well. Otherwise, the SubgridShowHorizontalLines property can be used to separately control whether the horizontal sub-grid lines should be displayed.

Number of grid lines

The GridHorizontalLineCount and GridVerticalLineCount properties determine the total number of horizontal and vertical grid lines displayed. With four horizontal and three vertical lines (default value), the histogram is thus divided into five horizontal and four vertical areas. Numerical labels are also generated for the horizontal grid lines, which represent the respective frequency value.

The number of sub-grid lines per horizontal area is defined separately via the SubgridHorizontalLineCount property.

Labels of the gridlines

The labels can be shown and hidden using the ShowLabels property. In addition, the LabelPosition property offers the option of adjusting the alignment of the labels:

Style of the gridlines

The GridLineColor property is used to define the color of the grid lines. The GridLineWidth and SubgridLineWidth properties can be used to set different line thicknesses for grid lines and sub-grid lines. In addition, GridLineStyle and SubgridLineStyle can be used to specify whether the lines are displayed as dashed (Dashed), dotted (Dotted) or continuous (Solid).