It would be nice if the ticktext argument accepted a html Div.
I noticed, that some html tags work on it, such as <b> and <a>.
text = ['long text', 'B', 'short', 'well']
test = [f'<a href="www.google.com">{item}</a>' for item in text]
test = [f'<b>{item}</b>' for item in text]
# ^^ works
test = [f'<center>{item}</center>' for item in text]
# ^^ does not work