Skip to main content

BarChartRod

A bar rod in a BarChartGroup.

Inherits: BaseControl

Properties

Properties

background_gradientclass-attributeinstance-attribute

background_gradient: Optional[Gradient] = None

An optional gradient to draw a background with.

bg_from_yclass-attributeinstance-attribute

bg_from_y: Optional[Number] = None

An optional starting position of a background behind this rod.

bg_to_yclass-attributeinstance-attribute

bg_to_y: Optional[Number] = None

An optional ending position of a background behind this rod.

bgcolorclass-attributeinstance-attribute

bgcolor: Optional[ColorValue] = None

An optional color of a background behind this rod.

border_radiusclass-attributeinstance-attribute

border_radius: Optional[BorderRadiusValue] = None

Border radius of a bar rod.

border_sideclass-attributeinstance-attribute

border_side: Optional[BorderSide] = None

Border to draw around rod.

colorclass-attributeinstance-attribute

color: Optional[ColorValue] = None

Rod color.

from_yclass-attributeinstance-attribute

from_y: Number = 0

Specifies a starting position of this rod on Y axis.

gradientclass-attributeinstance-attribute

gradient: Optional[Gradient] = None

Gradient to draw rod's background.

selectedclass-attributeinstance-attribute

selected: bool = False

If 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 = True

Whether 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] = None

Specifies 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.

widthclass-attributeinstance-attribute

width: Optional[Number] = None

The width of this rod.