My goal is to use the plotly_hover and plotly_unhover events to show the associated values in my own way.
Additionally I want to disable the value-annotation that appears in plot if you move the mouse.
But I can’t use “hovermode: false” (row 18) in layout because then the mentioned events will not be fired by plotly.
I thought the row 31 could be a workaround: Plotly.Fx.hover(myDiagramElement, []);
But If I use this in plotly_hover-Event the plotly_unhover-Event will not be fired.
Anybody have another idea to hide the value-annotations or other solutions?
Aah… the solution is easy! It is possible to diable the tooltips/value-annotations with the hoverinfo: 'none' as you can see in my updated js fiddle in line 8 and 16: https://jsfiddle.net/473z6Lbx/4/
hoverinfo (flaglist string)
Any combination of “x”, “y”, “z”, “text”, “name” joined with a “+” OR “all” or “none” or “skip”.
examples: “x”, “y”, “x+y”, “x+y+z”, "all"
default: "all"
Determines which trace information appear on hover. If none or skip are set, no information is displayed upon hovering. But, if none is set, click and hover events are still fired.