Skip to content

layout.spikedistance = -1 causes missing spike lines over non-scatter traces. #3805

Closed
@ngnpope

Description

@ngnpope

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions