Skip to content

BarChartRodTooltip

BarChartRodTooltip #

Bases: ChartDataPointTooltip

Tooltip configuration for the BarChartRod.

text #

text: str | None = None

The text to display in the tooltip.

When None, defaults to BarChartRod.to_y.

text_align #

text_align: TextAlign = CENTER

An align for the tooltip.

text_spans #

text_spans: list[TextSpan] | None = None

Additional text spans to show on a tooltip.

text_style #

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

A text style to display tooltip with.

copy_with #

copy_with(
    *,
    text: str | None = None,
    text_style: TextStyle | None = None,
    text_align: TextAlign | None = None,
    text_spans: list[TextSpan] | None = None,
) -> BarChartRodTooltip

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