Hi,
I need to change the information in the tooltip, the hoverinfo is very limited. What I´ll like to achieve is to call some function using the ‘x’ and ‘y’ from the hoverData and show it in the hover tooltip. Is there any way I can overwrite the hover behavior so I can show more than just “x”, “y”, “z”, “text” or “name”.
I have tried to use annotations instead of the tooltip and placing the annotation and the text that I need every time hoverData is triggered. But, this solution is very slow as I need to pass the figure every time.
Any ideas?
Thanks
That is exactly the problem. The ‘text’ property depends on the ‘x’ and ‘y’ value, so I need to precalculate this ‘text’ and then load it into the plot. This is no efficient at all as I have more than 30 traces with more than 65000 points each.
It would be great to call a function inside the hover tooltip that reads as argument the hovered ‘x’ and ‘y’ and returns this ‘text’ property.
Is the text object the hoverinfo as well as the text that appears on the graph? I would like to make these seperate, where the hoverinfo has more information than what appears on the graph.