Skip to content

Multiple y axes -> only one scatter shows up #3074

Closed
@jason-curtis

Description

@jason-curtis

Issue

When plotting data on multiple Y axes, particularly when nothing is plotted on the primary Y axis, sometimes plotly will only show one series.

Repro

https://codepen.io/jasoncurtis/pen/zmqNMQ?editors=0010

Expected behavior

Two series are plotted.

Actual behavior

Two series show up in the legend, but only one series is plotted.

Workaround

If you change 'y2' in the repro code above to 'y1', both series will show up. However, it's not always reasonable to assume there will be data on y1 - I am trying to write a purpose-specific API that uses plotly in such a way that I cannot guarantee there will be something on y1 without significant extra complexity.

Related:

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