PieChartSection
PieChartSection
#
Bases: BaseControl
Configures a PieChart section.
RAISES | DESCRIPTION |
---|---|
AssertionError
|
If |
badge_position
#
badge_position: Number | None = None
The position/offset of the badge relative to the section's center.
By default the badge is drawn in the middle of the section.
Note
Must be between 0.0
(near the center)
and 1.0
(near the outside of the chart) inclusive.
border_side
#
border_side: BorderSide = field(
default_factory=lambda: none()
)
The border around section shape.
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
.
title_position
#
title_position: Number | None = None
The position/offset of the title relative to the section's center.
By default the title is drawn in the middle of the section.
Note
Must be between 0.0
(near the center)
and 1.0
(near the outside of the chart) inclusive.
value
#
value: Number
Determines how much the section should occupy. This depends on sum of all sections,
each section should occupy (value
/ sum of all values) * 360
degrees.
build
#
Called once during control initialization to define its child controls. self.page is available in this method.