BarChartRod

Represents a single bar rod within a BarChartGroup. It inherits from BaseControl.

Properties

  • **color**: ColorValue | None - The color of the rod.
  • **width**: Number | None - The width of the rod.
  • **from_y**: Number - The starting Y-axis position of the rod.
  • **to_y**: Number | None - The ending Y-axis position of the rod.
  • **gradient**: Gradient | None - A gradient to draw the rod's background.
  • **background_gradient**: Gradient | None - An optional gradient for the rod's background.
  • **bgcolor**: ColorValue | None - An optional color for the rod's background.
  • **bg_from_y**: Number | None - Optional starting Y-axis position for the background.
  • **bg_to_y**: Number | None - Optional ending Y-axis position for the background.
  • **border_radius**: BorderRadiusValue | None - The border radius of the rod.
  • **border_side**: BorderSide | None - The border to draw around the rod.
  • **show_tooltip**: bool = True - Whether to show a tooltip on hover.
  • **selected**: bool = False - If True, shows tooltip even when BarChart.interactive is False.
  • **tooltip**: str | BarChartRodTooltip - Configuration for the rod's tooltip.
  • **stack_items**: list[ BarChartRodStackItem ] - A list of BarChartRodStackItem for creating stacked bars.