PieChartSection
Inherits: BaseControl
Configures a PieChart section.
Properties
-
badge(Optional[Control]) –An optional
Controldrawn in the middle of a section. -
badge_position(Optional[Number]) –The position/offset of the
badgerelative to the section's center. -
border_side(BorderSide) –The border around section shape.
-
color(Optional[ColorValue]) –Background color of the section.
-
gradient(Optional[Gradient]) –Defines the gradient of section. If specified, overrides the color setting.
-
radius(Optional[Number]) –External radius of the section.
-
title(Optional[str]) –A title drawn at the center of the section.
-
title_position(Optional[Number]) –The position/offset of the
titlerelative to the section's center. -
title_style(Optional[TextStyle]) –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
#
An optional Control drawn in the middle of a section.
badge_position
class-attribute
instance-attribute
#
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: Optional[ColorValue] = None
Background color of the section.
gradient
class-attribute
instance-attribute
#
Defines the gradient of section. If specified, overrides the color setting.
radius
class-attribute
instance-attribute
#
External radius of the section.
title
class-attribute
instance-attribute
#
A title drawn at the center of the section.
title_position
class-attribute
instance-attribute
#
title_style
class-attribute
instance-attribute
#
The style to draw title with.