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.

Sankey error state

See original GitHub issue

In https://github.com/plotly/plotly.py/issues/1536, @adurivault discovered a combination of Sankey links that causes Plotly.js to freeze up.

CodePen: https://codepen.io/jonmmease/pen/OGGPjL?editors=1010

var fig = {
  "data": [
    {
      "link": {
        "source": [
          2,
          2,
          4,
          2,
          3,
          0,
          1,
          0
        ],
        "target": [
          0,
          4,
          2,
          3,
          2,
          4,
          2,
          1
        ],
        "value": [
          1,
          1,
          1,
          1,
          1,
          1,
          1,
          1
        ]
      },
      "node": {
        "label": [
          "A",
          "B",
          "C",
          "D",
          "E"
        ]
      },
      "type": "sankey"
    }
  ],
  "layout": {}
}

Plotly.newPlot('myDiv', fig, {showSendToCloud: true});

Interestingly, if any single link is commented out, then the diagram renders successfully.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
antoinergcommented, Jun 4, 2019

Thank you @joetristano for confirming this fixes your issue!

The PR hasn’t been merged into master yet but it should be part of our next minor release which will be v1.49.0. You can follow the progress in PR #3932

1reaction
antoinergcommented, May 22, 2019

Thank you for posting your dataset @joetristano. I haven’t had time to tackle the issue upstream tomshanley/d3-sankey-circular#35 but I will give it a look soon. I’ll keep you posted.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error on sankey update while hovered · Issue #10624 - GitHub
A call to chart.update while a sankey edge is hovered results in error. highcharts.src.js:45176 Uncaught TypeError: Cannot read property ' ...
Read more >
The What, Why, and How of Sankey Diagrams
Sankey diagrams show the flow of resources. They communicate sources and uses of the resources, materials, or costs represented.
Read more >
How to resolve undefined columns error for a Sankey in R?
The column names that you are setting in the sankeyNetwork function (i.e. Source = "Source", Target = "Target", Value = "Value", ...
Read more >
use ggalluvial to draw Sankey, but an error occured:Error ...
I tried to use R's ggplot2 and ggalluvial to draw sankey, ... The error message states that mydata$Target.region does not have the same ......
Read more >
Sankey chart shows 'no data found' error
This error occurs when the underlying NRQL query generated by the filters and/or facets applied to the sankey diagram do not contain the...
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