Skip to content

Use upstream d3-sankey and d3-sankey-circular #7689

@adamreeve

Description

@adamreeve

Plotly.js currently uses a forked version of d3-sankey: https://github.com/plotly/d3-sankey

This appears to have been originally forked due to the upstream maintainer not being responsive to a PR: d3/d3-sankey#19 (comment)

However, the Plotly fork is now out of date with upstream d3-sankey and missing some features, notably the ability to control the order of nodes, which has been requested in #4373.

The Plotly fork could be updated, but it appears that all the features that were added to the fork have now been added upstream or reverted, so it might be simplest to switch to using the upstream d3-sankey library directly.

Fork features:

plotly.js similarly uses a forked version of d3-sankey-cirular: https://github.com/plotly/d3-sankey-circular. This has been archived and is also behind its upstream library, which also has support for setting nodeSort.

Do you have any thoughts on this @monfera, @antoinerg or @etpinard?

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