Skip to main content

ScatterChartSpot

A spot on a scatter chart.

Inherits: BaseControl

Properties

  • color - Color of a spot.
  • label_text - TBD
  • label_text_style - TBD
  • point - TBD
  • radius - Radius of a spot.
  • render_priority - Sort by this to manage overlap.
  • selected - Whether to treat this spot as selected.
  • show_tooltip - Whether to show the tooltip.
  • tooltip - Tooltip configuration for this spot.
  • visible - Determines whether to show or hide the spot.
  • x - The position of a spot on X axis.
  • x_error - The error range of this spot on the X axis, drawn as a horizontal error bar in the color of this spot.
  • y - The position of a spot on Y axis.
  • y_error - The error range of this spot on the Y axis, drawn as a vertical error bar in the color of this spot.

Properties​

colorclass-attributeinstance-attribute​

color: ColorValue | None = None

Color of a spot.

label_textclass-attributeinstance-attribute​

label_text: str = ''

TBD

label_text_styleclass-attributeinstance-attribute​

label_text_style: TextStyle = field(
    default_factory=lambda: TextStyle()
)

TBD

pointclass-attributeinstance-attribute​

point: None | bool | ChartPointShape = None

TBD

radiusclass-attributeinstance-attribute​

radius: Number | None = None

Radius of a spot.

render_priorityclass-attributeinstance-attribute​

render_priority: Number = 0

Sort by this to manage overlap.

selectedclass-attributeinstance-attribute​

selected: bool = False

Whether to treat this spot as selected.

show_tooltipclass-attributeinstance-attribute​

show_tooltip: bool = True

Whether to show the tooltip.

tooltipclass-attributeinstance-attribute​

tooltip: ScatterChartSpotTooltip | str = field(
    default_factory=lambda: ScatterChartSpotTooltip()
)

Tooltip configuration for this spot.

visibleclass-attributeinstance-attribute​

visible: bool = True

Determines whether to show or hide the spot.

xclass-attributeinstance-attribute​

x: Number | None = None

The position of a spot on X axis.

x_errorclass-attributeinstance-attribute​

x_error: ChartErrorRange | None = None

The error range of this spot on the X axis, drawn as a horizontal error bar in the color of this spot.

Automatic axis bounds cover spot positions only, so set ScatterChart.min_x and ScatterChart.max_x to keep the error bar inside the chart.

yclass-attributeinstance-attribute​

y: Number | None = None

The position of a spot on Y axis.

y_errorclass-attributeinstance-attribute​

y_error: ChartErrorRange | None = None

The error range of this spot on the Y axis, drawn as a vertical error bar in the color of this spot.

Automatic axis bounds cover spot positions only, so set ScatterChart.min_y and ScatterChart.max_y to keep the error bar inside the chart.