ChartAxis
ChartAxis
#
Bases: BaseControl
Configures chart axis.
labels
#
labels: list[ChartAxisLabel] = field(default_factory=list)
The list of ChartAxisLabel
objects to set custom axis labels for only specific values.
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
.
show_labels
#
show_labels: bool = True
Whether to display the labels
along the axis.
If labels
is empty then automatic labels are displayed.
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
#
Called once during control initialization to define its child controls. self.page is available in this method.