Skip to content

ScatterChartSpot

ScatterChartSpot #

Bases: BaseControl

A spot on a scatter chart.

color #

color: ColorValue | None = None

Color of a spot.

data #

data: Any = skip_field()

Arbitrary data of any type that can be attached to a control.

key #

key: (
    str | int | float | bool | ValueKey | ScrollKey | None
) = None

label_style #

label_style: TextStyle | None = None

TBD

label_text #

label_text: str | None = None

TBD

page #

page: Page | PageView | None

The page (of type Page or PageView) to which this control belongs to.

parent #

parent: BaseControl | None

The direct ancestor(parent) of this control.

It defaults to None and will only have a value when this control is mounted (added to the page tree).

The Page control (which is the root of the tree) is an exception - it always has parent=None.

point #

point: bool | ChartPointShape | None = None

TBD

radius #

radius: Number | None = None

Radius of a spot.

render_priority #

render_priority: Number = 0

Sort by this to manage overlap.

selected #

selected: bool = False

TBD

show_tooltip #

show_tooltip: bool = True

Wether to show the tooltip.

tooltip #

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

Tooltip configuration for this spot.

visible #

visible: bool = True

Determines wether to show or hide the spot.

x #

x: Number | None = None

The position of a spot on X axis.

x_error #

x_error: Any | None = None

Determines the error range of the data point using FlErrorRange (which contains lowerBy and upperValue) for the X axis.

y #

y: Number | None = None

The position of a spot on Y axis.

y_error #

y_error: Any | None = None

Determines the error range of the data point using FlErrorRange (which contains lowerBy and upperValue) for the Y axis.

before_event #

before_event(e: ControlEvent)

before_update #

before_update()

did_mount #

did_mount()

init #

init()

is_isolated #

is_isolated()

update #

update() -> None

will_unmount #

will_unmount()