It’s pretty simple actually, you just have to override both the width and the max-width property on .dash-table-tooltip, and remember to add !important so they get precedence.
I’ve got this same question. Problem is, I’m a back-end programmer who has barely touched HTML and CSS. So the instructions you’ve provided don’t lead me to a clear solution. I tried a few things, but the only change that I ever got was to have the text box be offset to the left, even though I’d only changed width and/or maxWidth via style={...}. If someone could supply a little Python code to show how one changes the width of the Tooltip text box that displays during hovering, that would be wonderful!
Thanks a lot. This works for me and i leave here a snippet code to show how i applied this advice:
css=[
{‘selector’: ‘.dash-table-tooltip’,
‘rule’: ‘background-color: white; color: white; width:500px !important; max-width:500px !important;’,
‘z-index’: ‘0’, ‘position’: ‘absolute’, ‘border’: ‘solid’, ‘border-color’: ‘red’},]