Skip to content

visible: true ignored if x, y data arrays are empty #2861

Closed
@seansfkelley

Description

@seansfkelley

When rending a trace with no data, it can be desirable to always show a legend item even if there are no data points. (Example: user-editable data; if the user deletes all the data it would be nice to stay consistent and just show an empty trace with a legend entry.)

I thought this was possible with visible: true, but that appears to not be the case. See this example for more (add values to x and y and note that the legend pops in along with the data, i.e., it is not present if the data is not present).

#1310 (comment) suggests this would be desirable behavior, but I see no other issues mentioning it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions