Skip to content

repeated adding - removing trace in animation mode fails #1129

Closed
@Quath

Description

@Quath

When you have a page where you can add to an existing plot a trace (for instance if you want to compare 2 populations), and you repeatedly (thus more than once) add and remove and add again the additional trace within animation mode => the second time you add the trace, it isn't displayed (though it is in the frame definition!!!).

Since the description is a bit "vague" I've made a fiddle which tends to reproduce this effect.
https://fiddle.jshell.net/Quath/fzxavfq9/

You'll notice that it works fine the first time you click on the "add" button. Then, on the "delete", you come back to one trace (ok almost ... my example fails here, but I succeeded in the real code to have only one trace --using ng-if and $onDestroy, so let's not bother on that). And when you click on the "add" again ... well the data is there (see console log) but the additional trace isn't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions