Skip to content

ChartGridLines

ChartGridLines #

Configures the appearance of horizontal and vertical grid lines within the chart.

color #

color: ColorValue | None = None

The color of a grid line.

dash_pattern #

dash_pattern: list[int] | None = None

Defines dash effect of the line. The value is a circular list of dash offsets and lengths. For example, the list [5, 10] would result in dashes 5 pixels long followed by blank spaces 10 pixels long. By default, a solid line is drawn.

interval #

interval: Number | None = None

The interval between grid lines.

width #

width: Number = 2.0

The width of a grid line.

copy_with #

copy_with(
    *,
    interval: Number | None = None,
    color: ColorValue | None = None,
    width: Number | None = None,
    dash_pattern: list[int] | None = None,
) -> ChartGridLines

Returns a copy of this object with the specified properties overridden.