Skip to content

data missing when multiple parcoords traces #3361

Closed
@jonmmease

Description

@jonmmease

Originally reported in plotly/plotly.py#1372

When multiple parcoords traces are placed in the same figure, the data lines only show up for the first trace. Subsequent traces display their axes, but no data lines.

CodePen: https://codepen.io/jonmmease/pen/xmqqJP

Code:

var fig = {
  "data": [
    {
      "dimensions": [
        {
          "constraintrange": [
            1,
            2
          ],
          "label": "A",
          "range": [
            1,
            5
          ],
          "values": [
            1,
            4
          ]
        },
        {
          "label": "B",
          "range": [
            1.5,
            5
          ],
          "tickvals": [
            1.5,
            3,
            4.5
          ],
          "values": [
            3,
            1.5
          ]
        }
      ],
      "domain": {
        "x": [
          0,
          0.45
        ],
        "y": [
          0,
          1
        ]
      },
      "line": {
        "color": "blue"
      },
      "type": "parcoords"
    },
    {
      "dimensions": [
        {
          "constraintrange": [
            1,
            2
          ],
          "label": "C",
          "range": [
            1,
            5
          ],
          "values": [
            1,
            4
          ]
        },
        {
          "label": "D",
          "range": [
            1.5,
            5
          ],
          "tickvals": [
            1.5,
            3,
            4.5
          ],
          "values": [
            3,
            1.5
          ]
        }
      ],
      "domain": {
        "x": [
          0.55,
          1
        ],
        "y": [
          0,
          1
        ]
      },
      "line": {
        "color": "blue"
      },
      "type": "parcoords"
    }
  ],
  "layout": {
    "title": "Multi-Parcoords Diagram"
  }
}

Plotly.plot('plotly-div', fig);

newplot-5

This worked fine in 1.31.0, seems to have broken in 1.32.0, and remains broken in 1.33.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething brokenregressionthis used to work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions