How can I add unit (m/s) to windspeed tooltip value
p.add_tools(HoverTool(
tooltips=[
("Date", "$x{%F}"),
("Windspeed", "$y" )
],
formatters={
'$x':'datetime'
},
))
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" )

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
End of archived discussion · Replies are disabled