Skip to main content

ChartDataPointTooltip

Configuration of the tooltip for data points in charts.

Properties

  • rtl - Whether the text is right-to-left.
  • text - The text to display in this tooltip.
  • text_align - The text alignment of the tooltip.
  • text_spans - Additional text spans to show on this tooltip.
  • text_style - A text style to display tooltip with.

Methods

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

Properties

rtlclass-attributeinstance-attribute

rtl: bool = False

Whether the text is right-to-left.

textclass-attributeinstance-attribute

text: Optional[str] = None

The text to display in this tooltip.

text_alignclass-attributeinstance-attribute

text_align: TextAlign = TextAlign.CENTER

The text alignment of the tooltip.

text_spansclass-attributeinstance-attribute

text_spans: Optional[list[TextSpan]] = None

Additional text spans to show on this tooltip.

text_styleclass-attributeinstance-attribute

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

A text style to display tooltip with.

Methods

copy

copy(text: Optional[str] = None, text_style: Optional[TextStyle] = None, text_align: Optional[TextAlign] = None, text_spans: Optional[list[TextSpan]] = None, rtl: Optional[bool] = None)

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