Skip to content

LineChartTooltip

LineChartTooltip #

Configuration of the tooltip for LineCharts.

bgcolor: ft.ColorValue = '#FF607D8B' #

Background color of tooltip.

border_radius: Optional[ft.BorderRadiusValue] = None #

The tooltip's border radius.

border_side: ft.BorderSide = field(default_factory=lambda: ft.BorderSide.none()) #

The tooltip's border side.

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_offset: ft.Number = 0.0 #

Applies horizontal offset for showing tooltip.

margin: ft.Number = 16 #

Applies a bottom margin for showing tooltip on top of rods.

max_width: ft.Number = 120 #

Restricts the tooltip's width.

padding: ft.PaddingValue = field(default_factory=lambda: ft.Padding.symmetric(vertical=8, horizontal=16)) #

Applies a padding for showing contents inside the tooltip.

Value is of type PaddingValue.

rotate_angle: ft.Number = 0.0 #

The tooltip's rotation angle in degrees.

show_on_top_of_chart_box_area: bool = False #

Whether to force the tooltip container to top of the line.