Skip to content

Two 'bar' traces are not showing with empty data #1310

Closed
@sandertar

Description

@sandertar

Hi! I try to create two time series with type 'bar'.
One trace didn't contain any data, but this one should be shown in legend. To make this trace visible in legend, I have set x: [null] and y: [null];
But in this case both series are not displaying.
https://codepen.io/sandertar/pen/VPmOdK
Is there any other way to make label visible in legend for trace without data?

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