Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve robustness of circular Sankey #3932

Merged
merged 2 commits into from
Jun 25, 2019
Merged

improve robustness of circular Sankey #3932

merged 2 commits into from
Jun 25, 2019

Conversation

antoinerg
Copy link
Contributor

package.json Outdated
@@ -66,7 +66,7 @@
"d3-force": "^1.0.6",
"d3-hierarchy": "^1.1.8",
"d3-interpolate": "1",
"d3-sankey-circular": "0.33.0",
"d3-sankey-circular": "[email protected]:antoinerg/d3-sankey-circular.git#8943bbd049c4651dbb230aa0e55ee8aad5d85afd",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@etpinard etpinard Jun 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to make a PR to d3-sankey-circular. Maybe the author will have an opinion and/or tips about your patch

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I sent a PR upstream: tomshanley/d3-sankey-circular#36 !

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. That's frustrating. No news from the d3-sankey-circular maintainers. We might have to make a new package out of your fork e.g. @plotly/d3-sankey-circular

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem! I will make a release today

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 5fed1a5

Copy link
Contributor

@etpinard etpinard Jun 25, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@antoinerg
Copy link
Contributor Author

antoinerg commented Jun 3, 2019

One baseline was altered by the hotfix and unfortunately, it is for the worse... The layout was better before. On average, however, the difference should not be appreciable.

https://github.com/plotly/plotly.js/pull/3932/files?short_path=cdba412#diff-cdba41218912246c7747de846d0ee72d

@antoinerg antoinerg mentioned this pull request Jun 3, 2019
@antoinerg antoinerg added status: in progress bug something broken labels Jun 3, 2019
@etpinard
Copy link
Contributor

etpinard commented Jun 4, 2019

One baseline was altered by the hotfix and unfortunately, it is for the worse... The layout was better before. On average, however, the difference should not be appreciable.

Ok, interesting. Do you have an idea of how common data similar to sankey_circular_process is?

For what it's worth, I'm ok with this patch. Deteriorating some cases while fixing cases that were 100% broken sounds like a win to me, but will I don't think we should include this in a patch release; this might have to wait for 1.49.0

@antoinerg
Copy link
Contributor Author

antoinerg commented Jun 5, 2019

Ok, interesting. Do you have an idea of how common data similar to sankey_circular_process is?

I really can't say. I haven't seen that many Sankey diagrams with circular links in the wild.

For what it's worth, I'm ok with this patch. Deteriorating some cases while fixing cases that were 100% broken sounds like a win to me,

It is definitely a win. That being said, down the road, it might be worth investigating ways to improve the default position of nodes.

@etpinard etpinard added this to the v1.49.0 milestone Jun 11, 2019
@etpinard
Copy link
Contributor

Nicely done 💃 !

@antoinerg antoinerg merged commit a6393bc into master Jun 25, 2019
@antoinerg antoinerg deleted the sankey-fix-3813 branch June 25, 2019 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sankey error state
2 participants