When using layout.spikedistance with a value of -1, which is supposed to mean "no cutoff", and layout.xaxis.spikesnap with a value of 'cursor', I expected the spike line to be always visible in the plot area when moving the cursor across it. Indeed, when looking at my codepen, this is the case for the first scatter chart.
When I have other types of traces, the -1 value doesn't seem to work in the same way and the spike line isn't rendered or can occasionally be seen between the traces. Changing to a value of 9999 then works, but only over the traces and not between.
Interestingly, combining scatter and bar partially works, but results in some flickering when hovering the mouse back and forth.
When using
layout.spikedistancewith a value of-1, which is supposed to mean "no cutoff", andlayout.xaxis.spikesnapwith a value of'cursor', I expected the spike line to be always visible in the plot area when moving the cursor across it. Indeed, when looking at my codepen, this is the case for the first scatter chart.When I have other types of traces, the
-1value doesn't seem to work in the same way and the spike line isn't rendered or can occasionally be seen between the traces. Changing to a value of9999then works, but only over the traces and not between.Interestingly, combining scatter and bar partially works, but results in some flickering when hovering the mouse back and forth.