I am adding custom text tick labels to my graph (using
Figure.update_xaxes(ticktext=[...], tickvals=[...])). However some names are too long to be displayed in its entirety. I wish to truncate such names with an ellipsis, but allow the full name to be shown when a user hovers over the ticklabel.
To complicate things further the custom text are hyperlinks (through setting ticktext with html “
<a href='...'>possibly long name</a>”) so the truncate/hover behavior should not interfere with being able to navigate the links.
My current solution is able to link and truncate, but lacks any hovertext. How should I add the hover elements (if possible)?
Thank you for any help