Skip to content

ChartDataPointTooltip

Configuration of the tooltip for data points in charts.

Properties

Methods

  • copy

    Returns a copy of this object with the specified properties overridden.

Properties#

rtl #

rtl: bool = False

Whether the text is right-to-left.

text #

text: str | None = None

The text to display in this tooltip.

text_align #

text_align: TextAlign = CENTER

The text alignment of the tooltip.

text_spans #

text_spans: list[TextSpan] | None = None

Additional text spans to show on this tooltip.

text_style #

text_style: TextStyle = field(
    default_factory=lambda: TextStyle()
)

A text style to display tooltip with.

Methods#

copy #

copy(
    *,
    text: str | None = None,
    text_style: TextStyle | None = None,
    text_align: TextAlign | None = None,
    text_spans: list[TextSpan] | None = None,
    rtl: bool | None = None,
) -> ChartDataPointTooltip

Returns a copy of this object with the specified properties overridden.