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: Optional[ColorValue] = 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: Optional[ColorValue] = 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: Optional[ColorValue] = None, size: Optional[Number] = None, stroke_color: Optional[ColorValue] = None, stroke_width: Optional[Number] = None)

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