question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

data missing when multiple parcoords traces

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
archmojcommented, May 30, 2019
0reactions
tzhang-lillycommented, Jun 22, 2022

Hi, I think the bug is not related to the constraints on the graph. I had the same issue with the stackoverflow post. With multiple subplots, only the first graph would show up…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing data when Supplying a Dual-axis--Multiple-traces to ...
Data is provided at the bottom of the question. I am trying to use subplot with plotly objects which one of them has...
Read more >
Python Figure Reference: parcoords Traces - Plotly
Parcoords trace is a graph object in the figure's data list with any of the named arguments or attributes listed below. Parallel coordinates...
Read more >
PlotlyWidget.add_surface — Kaleidoscope 0.0.13.dev13+3c1f2c3 ...
The data the describes the coordinates of the surface is set in z . ... of some user-driven changes to the trace: constraintrange...
Read more >
COVID-19 in SEA and the Philippines | Kaggle
Explore and run machine learning code with Kaggle Notebooks | Using data from COVID-19 ... With multiple `stackgroup`s or some traces stacked and...
Read more >
tidyverse, plotly Flashcards - Quizlet
For hierarchical data: use jsonlite (by Jeroen Ooms) for json, and xml2 for XML. ... changes to the trace: `constraintrange` in `parcoords` traces, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found