LineChartTooltip
Configuration of the tooltip for LineCharts.
Properties
-
bgcolor(ColorValue) –Background color of tooltip.
-
border_radius(BorderRadiusValue | None) –The tooltip's border radius.
-
border_side(BorderSide) –Defines the borders 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) –The horizontal alignment of this tooltip.
-
horizontal_offset(Number) –Applies horizontal offset for showing tooltip.
-
margin(Number) –Applies a bottom margin for showing tooltip on top of rods.
-
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.
-
show_on_top_of_chart_box_area(bool) –Whether to force the tooltip container to top of the line.
Methods
-
copy–Returns a copy of this object with the specified properties overridden.
Properties#
bgcolor
class-attribute
instance-attribute
#
bgcolor: ColorValue = '#FF607D8B'
Background color of tooltip.
border_radius
class-attribute
instance-attribute
#
border_radius: BorderRadiusValue | None = None
The tooltip's border radius.
border_side
class-attribute
instance-attribute
#
border_side: BorderSide = field(
default_factory=lambda: none()
)
Defines the borders 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
The horizontal alignment of this tooltip.
horizontal_offset
class-attribute
instance-attribute
#
horizontal_offset: Number = 0.0
Applies horizontal offset for showing 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
#
max_width: Number = 120
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 tooltip's rotation angle in degrees.
show_on_top_of_chart_box_area
class-attribute
instance-attribute
#
show_on_top_of_chart_box_area: bool = False
Whether to force the tooltip container to top of the line.
Methods#
copy
#
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,
show_on_top_of_chart_box_area: bool | None = None,
) -> LineChartTooltip
Returns a copy of this object with the specified properties overridden.