ScatterChartTooltip
Configuration of the tooltip for ScatterChart
s.
Properties
-
bgcolor
(ColorValue
) –The tooltip's background color.
-
border_radius
(BorderRadiusValue | None
) –The tooltip's border radius.
-
border_side
(BorderSide
) –The tooltip's border side.
-
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
) –The tooltip's horizontal alignment.
-
horizontal_offset
(Number
) –Applies horizontal offset for showing tooltip.
-
max_width
(Number
) –Restricts the tooltip's width.
-
padding
(PaddingValue
) –Applies a padding for showing contents inside the tooltip.
-
rotation
(Number
) –The tooltip's rotation angle in degrees.
Methods
-
copy
–Returns a copy of this object with the specified properties overridden.
Properties#
border_side
#
border_side: BorderSide = field(
default_factory=lambda: none()
)
The tooltip's border side.
fit_inside_horizontally
#
fit_inside_horizontally: bool = False
Forces the tooltip to shift horizontally inside the chart, if overflow happens.
fit_inside_vertically
#
fit_inside_vertically: bool = False
Forces the tooltip to shift vertically inside the chart, if overflow happens.
horizontal_alignment
#
horizontal_alignment: HorizontalAlignment = CENTER
The tooltip's horizontal alignment.
padding
#
padding: PaddingValue = field(
default_factory=lambda: symmetric(
vertical=8, horizontal=16
)
)
Applies a padding for showing contents inside the tooltip.
Methods#
copy
#
copy(
*,
bgcolor: ColorValue | None = None,
border_radius: BorderRadiusValue | None = None,
padding: PaddingValue | None = None,
max_width: Number | None = None,
rotation: Number | None = None,
horizontal_offset: Number | None = None,
horizontal_alignment: HorizontalAlignment | None = None,
border_side: BorderSide | None = None,
fit_inside_horizontally: bool | None = None,
fit_inside_vertically: bool | None = None,
) -> ScatterChartTooltip
Returns a copy of this object with the specified properties overridden.