Skip to content

[BUG]: scattergl error bars visibility mismatch #7773

@JulienIcon

Description

@JulienIcon

Description

There is a synchronization bug when using scattergl traces with error bars (error_y or error_x) mixed with traces without error bars. When toggling the visibility of a trace via the legend, the line disappears correctly, but its error bars remain visible (ghosting), or the error bars of a different trace disappear instead.
This issue does not occur when using standard scatter (SVG) traces.

Screenshots/Video

You can see the bug in action here :

Screencast.From.2026-04-24.11-55-44.mp4

Steps to reproduce

Here https://codepen.io/JulienIcon/pen/emdwbZj try to click on "my", "my" curve with disappear, but it's error bars remain visible, and the error bar of "mz" disappear.
Or :

  1. Create a plot.
  2. Add multiple scattergl traces, some of them having error_y enabled.
  3. Click on a trace in the first legend to hide it (e.g., the 5th trace).

Notes

It seems that when all traces have error_y enabled, there is no synchronization bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions