categoryAxis.majorGridLines Object

Configures the major grid lines. These are the lines that are an extension of the major ticks through the body of the chart.

categoryAxis.majorGridLines.color String(default: "black")

The color of the lines. Any valid CSS color string will work here, including hex and rgb.

categoryAxis.majorGridLines.dashType String(default: "solid")

The dash type of the grid lines.

"solid"

Specifies a solid line.

"dot"

Specifies a line consisting of dots.

"dash"

Specifies a line consisting of dashes.

"longDash"

Specifies a line consisting of a repeating pattern of long-dash.

"dashDot"

Specifies a line consisting of a repeating pattern of dash-dot.

"longDashDot"

Specifies a line consisting of a repeating pattern of long-dash-dot.

"longDashDotDot"

Specifies a line consisting of a repeating pattern of long-dash-dot-dot.

categoryAxis.majorGridLines.visible Boolean(default: false)

The visibility of the lines.

categoryAxis.majorGridLines.width Number(default: 1)

The width of the lines.

categoryAxis.majorGridLines.step Number (default: 1)

The step of the category axis major grid lines.

categoryAxis.majorGridLines.skip Number (default: 0)

The skip of the category axis major grid lines.

In this article