Skip to main content

ChartSquarePoint

Draws a square.

Inherits: ChartPointShape

Properties

  • color - The fill color to use for the square.
  • size - The size of the square.
  • stroke_color - The stroke color to use for the square.
  • stroke_width - The stroke width to use for the square.

Methods

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

Properties

colorclass-attributeinstance-attribute

color: ColorValue | None = None

The fill color to use for the square.

sizeclass-attributeinstance-attribute

size: Number = 4.0

The size of the square.

stroke_colorclass-attributeinstance-attribute

stroke_color: ColorValue | None = None

The stroke color to use for the square.

stroke_widthclass-attributeinstance-attribute

stroke_width: Number = 1.0

The stroke width to use for the square.

Methods

copy

copy(
    color: ColorValue | None = None,
    size: Number | None = None,
    stroke_color: ColorValue | None = None,
    stroke_width: Number | None = None,
) -> ChartSquarePoint

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