BarChartTooltip
Configuration of the tooltip for BarCharts.
Properties
bgcolor- Background color of tooltips.border_radius- The border radius of the tooltip.border_side- The tooltip border side.direction- Defines the direction of this tooltip.fit_inside_horizontally- Forces the tooltip to shift horizontally inside the chart, if overflow happens.fit_inside_vertically- Forces the tooltip to shift vertically inside the chart, if overflow happens.horizontal_alignment- Defines the horizontal alignment of this tooltip.horizontal_offset- The horizontal offset of this tooltip.margin- Applies a bottom margin for showing tooltip on top of rods.max_width- Restricts the tooltip's width.padding- Applies a padding for showing contents inside the tooltip.rotation- The rotation angle of the tooltip.
Methods
copy- Returns a copy of this object with the specified properties overridden.
Properties
bgcolorclass-attributeinstance-attribute
bgcolor: ColorValue = Colors.SECONDARYBackground color of tooltips.
border_radiusclass-attributeinstance-attribute
border_radius: Optional[BorderRadiusValue] = NoneThe border radius of the tooltip.
border_sideclass-attributeinstance-attribute
border_side: Optional[BorderSide] = NoneThe tooltip border side.
directionclass-attributeinstance-attribute
direction: BarChartTooltipDirection = BarChartTooltipDirection.AUTODefines the direction of this tooltip.
fit_inside_horizontallyclass-attributeinstance-attribute
fit_inside_horizontally: bool = FalseForces the tooltip to shift horizontally inside the chart, if overflow happens.
fit_inside_verticallyclass-attributeinstance-attribute
fit_inside_vertically: bool = FalseForces the tooltip to shift vertically inside the chart, if overflow happens.
horizontal_alignmentclass-attributeinstance-attribute
horizontal_alignment: HorizontalAlignment = HorizontalAlignment.CENTERDefines the horizontal alignment of this tooltip.
horizontal_offsetclass-attributeinstance-attribute
horizontal_offset: Number = 0.0The horizontal offset of this tooltip.
marginclass-attributeinstance-attribute
margin: Number = 16Applies a bottom margin for showing tooltip on top of rods.
max_widthclass-attributeinstance-attribute
max_width: Optional[Number] = NoneRestricts the tooltip's width.
paddingclass-attributeinstance-attribute
padding: PaddingValue = field(default_factory=(lambda: Padding.symmetric(vertical=8, horizontal=16)))Applies a padding for showing contents inside the tooltip.
Methods
copy
copy(bgcolor: Optional[ColorValue] = None, border_radius: Optional[BorderRadiusValue] = None, margin: Optional[Number] = None, padding: Optional[PaddingValue] = None, max_width: Optional[Number] = None, rotation: Optional[Number] = None, horizontal_offset: Optional[Number] = None, border_side: Optional[BorderSide] = None, fit_inside_horizontally: Optional[bool] = None, fit_inside_vertically: Optional[bool] = None, direction: Optional[BarChartTooltipDirection] = None, horizontal_alignment: Optional[HorizontalAlignment] = None)Returns a copy of this object with the specified properties overridden.