YAxis.majorGridLines
configurationThe configuration of the major grid lines. These are the lines that are an extension of the major ticks through the body of the chart.
yAxis.majorGridLines
ObjectThe color of the lines. Accepts a valid CSS color string, including hex and rgb.
Setting the
coloroption affects the major and minor ticks, but not the grid lines.
Default: "black"
The dash type of the line.
The following dash types are supported:
- "dash" - a line consisting of dashes
- "dashDot" - a line consisting of a repeating pattern of dash-dot
- "dot" - a line consisting of dots
- "longDash" - a line consisting of a repeating pattern of long-dash
- "longDashDot" - a line consisting of a repeating pattern of long-dash-dot
- "longDashDotDot" - a line consisting of a repeating pattern of long-dash-dot-dot
- "solid" - a solid line
Default: "solid"
The skip of the y axis major grid lines.
Default: 0
The step of the y axis major grid lines.
Default: 1
yAxis.majorGridLines.visible
BooleanIf set to false the chart will not display the y major grid lines. By default the y major grid lines are visible.
Default: true
The width of the line in pixels. Also affects the major and minor ticks, but not the grid lines.
Default: 1