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