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