BarChartTooltip
Configuration of the tooltip for BarCharts.
Properties
- 
          bgcolor(ColorValue) –Background color of tooltips. 
- 
          border_radius(BorderRadiusValue | None) –The border radius of the tooltip. 
- 
          border_side(BorderSide | None) –The tooltip border side. 
- 
          direction(BarChartTooltipDirection) –Defines the direction of this tooltip. 
- 
          fit_inside_horizontally(bool) –Forces the tooltip to shift horizontally inside the chart, if overflow happens. 
- 
          fit_inside_vertically(bool) –Forces the tooltip to shift vertically inside the chart, if overflow happens. 
- 
          horizontal_alignment(HorizontalAlignment) –Defines the horizontal alignment of this tooltip. 
- 
          horizontal_offset(Number) –The horizontal offset of this tooltip. 
- 
          margin(Number) –Applies a bottom margin for showing tooltip on top of rods. 
- 
          max_width(Number | None) –Restricts the tooltip's width. 
- 
          padding(PaddingValue) –Applies a padding for showing contents inside the tooltip. 
- 
          rotation(Number) –The rotation angle of the tooltip. 
Methods
- 
            copy–Returns a copy of this object with the specified properties overridden. 
Properties#
fit_inside_horizontally: bool = False
Forces the tooltip to shift horizontally inside the chart, if overflow happens.
fit_inside_vertically: bool = False
Forces the tooltip to shift vertically inside the chart, if overflow happens.
horizontal_alignment: HorizontalAlignment = CENTER
Defines the horizontal alignment of this tooltip.
padding: PaddingValue = field(
    default_factory=lambda: symmetric(
        vertical=8, horizontal=16
    )
)
Applies a padding for showing contents inside the tooltip.
Methods#
copy(
    *,
    bgcolor: ColorValue | None = None,
    border_radius: BorderRadiusValue | None = None,
    margin: Number | None = None,
    padding: PaddingValue | None = None,
    max_width: Number | None = None,
    rotation: Number | None = None,
    horizontal_offset: Number | None = None,
    border_side: BorderSide | None = None,
    fit_inside_horizontally: bool | None = None,
    fit_inside_vertically: bool | None = None,
    direction: BarChartTooltipDirection | None = None,
    horizontal_alignment: HorizontalAlignment | None = None,
) -> BarChartTooltip
Returns a copy of this object with the specified properties overridden.