Plotly.js: data missing when multiple parcoords traces

Created on 21 Dec 2018  路  4Comments  路  Source: plotly/plotly.js

Originally reported in https://github.com/plotly/plotly.py/issues/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.

bug regression

All 4 comments

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hashimmoosavi picture hashimmoosavi  路  3Comments

nicolaskruchten picture nicolaskruchten  路  3Comments

bryaan picture bryaan  路  3Comments

tim-sauchuk picture tim-sauchuk  路  3Comments

etpinard picture etpinard  路  3Comments