Skip to content

ChartAxisLabel

ChartAxisLabel #

Bases: BaseControl

Configures a custom label for specific value.

data #

data: Any = skip_field()

Arbitrary data of any type.

key #

key: KeyValue | None = None

label #

label: str | Control | None = None

The label to display for the specified value.

Can be a string or a Control.

page #

page: Page | BasePage | None

The page 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.

value #

value: Number | None = None

A value to draw label for.

before_event #

before_event(e: ControlEvent)

before_update #

before_update()

This method is called every time when this control is being updated.

/// details | Note Make sure not to call/request an update() here. ///

build #

build()

Called once during control initialization to define its child controls. self.page is available in this method.

did_mount #

did_mount()

init #

init()

is_isolated #

is_isolated()

update #

update() -> None

will_unmount #

will_unmount()