Skip to content

Stacked binary traces #5274

Closed
Closed
@ciuliene

Description

@ciuliene

Hello, I have a problem with Plotly.js. I'm trying to draw some traces which have 0 and 1 as values. They are digital variables and what I want to do is to draw them one above the other one, like this:

Schermata 2020-11-13 alle 22 15 25

To do so, I faked each trace values. First trace can be 0 or 1, second trace can be 3 or 4, third trace can be 6 or 7, etc...
The problem is when I remove a trace using the legend. The result is something like this:
Schermata 2020-11-13 alle 22 17 18

I'd like to have the other lines to be redrawn without the removed one.

So, the question is: is there an easier way to do this? Something like "stacked binary layout"?

Thank you!

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