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