MajorGridLines

Defines the appearance settings for major grid lines in the chart.

Props

The following table outlines the props for the MajorGridLines:

NameTypeDefaultDescription
color
string
null

Specifies the color of the major grid lines. Accepts any valid CSS color string.

dashArray
string
''

Defines the dash pattern for the major grid lines. Accepts a string of comma-separated numbers (e.g., '5,5') to create dashed lines.

width
number | null
null

Specifies the width of the major grid lines, in pixels. A value of 0 hides the grid lines.