Hover text on title

Hello,

I would like to know if it is possible to put a hover text on the title ? I checked the documentation (here: https://plot.ly/python/reference/#layout-title) and I didn’t find what I want.

Is there a way to make it possible ?

Thank you in advance

I don’t think this is possible yet with Dash. But you could move the title to a Heading and use the excellent Dash Bootstrap component that has tooltips.

Slightly modified from the dbc docs :

import dash_bootstrap_components as dbc
import dash_html_components as html

tooltip = html.Div(
    [
        html.H1(
            [
                html.Span(
                    "My Cool Title", id="tooltip-target"
                ),
            ]
        ),
        dbc.Tooltip(
            "My Cooler Hover Tooltip",
            target="tooltip-target",
        ),
    ]
)

Look it up here, and good luck.

2 Likes

Thank you for your reply ! It helped me a lot