BarChartRod
BarChartRod
#
Bases: BaseControl
A bar rod in a BarChartGroup
.
background_gradient: Optional[ft.Gradient] = None
#
An optional gradient to draw a background with.
bg_from_y: Optional[ft.Number] = None
#
An optional starting position of a background behind this rod.
bg_to_y: Optional[ft.Number] = None
#
An optional ending position of a background behind this rod.
border_radius: Optional[ft.BorderRadiusValue] = None
#
Border radius of a bar rod.
border_side: Optional[ft.BorderSide] = None
#
Border to draw around rod.
Value is of type BorderSide
class.
from_y: ft.Number = 0
#
Specifies a starting position of this rod on Y axis.
gradient: Optional[ft.Gradient] = None
#
Gradient to draw rod's background.
Value is of type Gradient
.
selected: bool = False
#
If set to True
a tooltip is always shown on top of the bar when
BarChart.interactive
is set to False
.
show_tooltip: bool = True
#
Whether a tooltip should be shown on top of hovered bar.
stack_items: list[BarChartRodStackItem] = field(default_factory=list)
#
Optional list of BarChartRodStackItem
objects to draw a stacked bar.
to_y: Optional[ft.Number] = None
#
Specifies an ending position of this rod on Y axis.
tooltip: BarChartRodTooltip = field(default_factory=lambda: BarChartRodTooltip())
#
The rod's tooltip configuration for this rod.
width: Optional[ft.Number] = None
#
The width of this rod.