LineChartTooltip
Configuration of the tooltip for LineCharts.
Properties
bgcolor- Background color of tooltip.border_radius- The tooltip's border radius.border_side- Defines the borders 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- The horizontal alignment of this tooltip.horizontal_offset- Applies horizontal offset for showing 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 tooltip's rotation angle in degrees.show_on_top_of_chart_box_area- 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
bgcolorclass-attributeinstance-attribute
bgcolor: ColorValue = '#FF607D8B'Background color of tooltip.
border_radiusclass-attributeinstance-attribute
border_radius: BorderRadiusValue | None = NoneThe tooltip's border radius.
border_sideclass-attributeinstance-attribute
border_side: BorderSide = field(
default_factory=lambda: BorderSide.none()
)Defines the borders 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.CENTER
)The horizontal alignment of this tooltip.
horizontal_offsetclass-attributeinstance-attribute
horizontal_offset: Number = 0.0Applies horizontal offset for showing tooltip.
marginclass-attributeinstance-attribute
margin: Number = 16Applies a bottom margin for showing tooltip on top of rods.
paddingclass-attributeinstance-attribute
padding: PaddingValue = field(
default_factory=lambda: Padding.symmetric(
vertical=8, horizontal=16
)
)Applies a padding for showing contents inside the tooltip.
rotationclass-attributeinstance-attribute
rotation: Number = 0.0The tooltip's rotation angle in degrees.
show_on_top_of_chart_box_areaclass-attributeinstance-attribute
show_on_top_of_chart_box_area: bool = FalseWhether 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,
) -> LineChartTooltipReturns a copy of this object with the specified properties overridden.