PieChartSection
Inherits: BaseControl
Configures a PieChart section.
Properties
-
badge(Control | None) –An optional
Controldrawn in the middle of a section. -
badge_position(Number | None) –The position/offset of the
badgerelative to the section's center. -
border_side(BorderSide) –The border around section shape.
-
color(ColorValue | None) –Background color of the section.
-
gradient(Gradient | None) –Defines the gradient of section. If specified, overrides the color setting.
-
radius(Number | None) –External radius of the section.
-
title(str | None) –A title drawn at the center of the section.
-
title_position(Number | None) –The position/offset of the
titlerelative to the section's center. -
title_style(TextStyle | None) –The style to draw
titlewith. -
value(Number) –Determines how much the section should occupy. This depends on sum of all sections,
Properties#
badge
class-attribute
instance-attribute
#
badge: Control | None = None
An optional Control drawn in the middle of a section.
border_side
class-attribute
instance-attribute
#
border_side: BorderSide = field(
default_factory=lambda: none()
)
The border around section shape.
color
class-attribute
instance-attribute
#
color: ColorValue | None = None
Background color of the section.
gradient
class-attribute
instance-attribute
#
gradient: Gradient | None = None
Defines the gradient of section. If specified, overrides the color setting.
radius
class-attribute
instance-attribute
#
radius: Number | None = None
External radius of the section.
title
class-attribute
instance-attribute
#
title: str | None = None
A title drawn at the center of the section.