BarChartGroup
BarChartGroup
#
Bases: BaseControl
group_vertically
#
group_vertically: bool = False
If set to True
bar rods are drawn on top of each other; otherwise bar rods
are drawn next to each other.
page
#
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
.
rods
#
rods: list[BarChartRod] = field(default_factory=list)
The list of BarChartRod
objects to display in the group.
before_update
#
before_update()
method is called every time when the control is being updated.
Make sure not to call update()
method within before_update()
.