BarChartRod
A bar rod in a BarChartGroup.
Inherits: BaseControl
Properties
background_gradient- An optional gradient to draw a background with.bg_from_y- An optional starting position of a background behind this rod.bg_to_y- An optional ending position of a background behind this rod.bgcolor- An optional color of a background behind this rod.border_radius- Border radius of a bar rod.border_side- Border to draw around rod.color- Rod color.from_y- Specifies a starting position of this rod on Y axis.gradient- Gradient to draw rod's background.selected- If set toTruea tooltip is always shown on top of the bar when flet_charts.BarChart.interactive is set toFalse.show_tooltip- Whether a tooltip should be shown on top of hovered bar.stack_items- Optional list of BarChartRodStackItem objects to draw a stacked bar.to_y- Specifies an ending position of this rod on Y axis.tooltip- The rod's tooltip configuration for this rod.width- The width of this rod.
Properties
background_gradientclass-attributeinstance-attribute
background_gradient: Optional[Gradient] = NoneAn optional gradient to draw a background with.
bg_from_yclass-attributeinstance-attribute
bg_from_y: Optional[Number] = NoneAn optional starting position of a background behind this rod.
bg_to_yclass-attributeinstance-attribute
bg_to_y: Optional[Number] = NoneAn optional ending position of a background behind this rod.
bgcolorclass-attributeinstance-attribute
bgcolor: Optional[ColorValue] = NoneAn optional color of a background behind this rod.
border_radiusclass-attributeinstance-attribute
border_radius: Optional[BorderRadiusValue] = NoneBorder radius of a bar rod.
border_sideclass-attributeinstance-attribute
border_side: Optional[BorderSide] = NoneBorder to draw around rod.
from_yclass-attributeinstance-attribute
from_y: Number = 0Specifies a starting position of this rod on Y axis.
gradientclass-attributeinstance-attribute
gradient: Optional[Gradient] = NoneGradient to draw rod's background.
selectedclass-attributeinstance-attribute
selected: bool = FalseIf set to True a tooltip is always shown on top of the bar when
flet_charts.BarChart.interactive
is set to False.
show_tooltipclass-attributeinstance-attribute
show_tooltip: bool = TrueWhether a tooltip should be shown on top of hovered bar.
stack_itemsclass-attributeinstance-attribute
stack_items: list[BarChartRodStackItem] = field(default_factory=list)Optional list of BarChartRodStackItem objects to draw a stacked bar.
to_yclass-attributeinstance-attribute
to_y: Optional[Number] = NoneSpecifies an ending position of this rod on Y axis.
tooltipclass-attributeinstance-attribute
tooltip: Union[BarChartRodTooltip, str] = field(default_factory=(lambda: BarChartRodTooltip()))The rod's tooltip configuration for this rod.