Can you append some text to tooltip values?

How can I add unit (m/s) to windspeed tooltip value

 p.add_tools(HoverTool(
        tooltips=[
            ("Date", "$x{%F}"),
            ("Windspeed", "$y" )
        ],
        formatters={
            '$x':'datetime'
        },
    ))

The format strings can contain any text you want to include, not only the format specifiers:

    ("Windspeed", "$y m/s" )

ah! don’t know why didn’t try that. :smiley:

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.