Skip to content

Order of toggled traces with legend on stacked area plot changes output plot #6716

Open
@marc-at-brightnight

Description

@marc-at-brightnight

Hi,

I'm noticing an issue when having traces that are part of a stack group. It seems like the order in which you toggle traces on can affect the output plot.

Here's an example:

If I toggle on Trace 2 and then Trace 1, I get the expected result:
image

However, if I toggle off Trace 1 and Trace 2 (in that order) and then toggle on Trace 1 and Trace 2 (in that order), I get a plot that looks different:
image

This does not seem like the expected behavior. Wondering if this is an issue with plotly or something I'm missing in the config.

Thanks in advance!

Here's a JS Fiddle link: https://jsfiddle.net/Lyzkdjr4/1/

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogbugsomething brokensev-3annoyance with workaround

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions