-
Notifications
You must be signed in to change notification settings - Fork 268
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
Several Sankey enhancements #151
Comments
I love all of these but I wonder at what point the level of customization and unique arguments begins to violate the overriding principle of simplicity and consistency in networkD3. At this point we might be better creating a separate package for incredibly awesome sankeys. I am eyeing the d3v4 sankeys discussion closely as there is some additional functionality there that will be nice to integrate but will break all of networkD3. I would appreciate some guiding comments by @ christophergandrud. Thanks for all your work on this! |
This pull d3/d3-sankey#4 is the one in particular that interests me most. I really like your trapezoids. |
Hi @timelyportfolio , thanks for your answer! I'd be happy to start and collaborate on a new package focused on the Sankey diagram, and maybe as test-bed for new features. But I'll also take @christophergandrud 's opinion on this. |
cc @daattali since seems like you have some interest in sankeys now :) |
I'm happy to announce that I ported the Sankey to D3 v4 and added some more features and fixes. It's in the repository https://github.com/fbreitwieser/sankeyD3. I'd happily add all of you as collaborators to the project. Also @christophergandrud , please feel free to merge any of the changes back into your code base. Changelog:
The |
@fbreitwieser This is amazing work! Well done. I've been wanting to do a complete rewrite of networkD3 for D3 v4 (#143), but have just been really really busy with other work. From January I'm moving to Harvard to work almost entirely on statistical software development. so should be able dedicate more time to this. Given that you've already done a lot of the ground work on this, would you be interested in helping out (e.g. pointing out pain points and other issues you experienced in the transition to v4)? |
Thanks for the kind words. Please note that Javascript and D3 are not my usual programming languages, and I might do some things wrong or inefficient. Porting to D3 v4 is mostly pretty straightforward due to the good documentation of the changes. The Wiki lists, for each of the modules, the changes from v3 to v4 on the Wiki. See for example https://github.com/d3/d3/wiki/Zoom-Behavior . The best overview I find is in https://iros.github.io/d3-v4-whats-new .
you now have to write more verbosely
|
This is a really nice write up. Thanks! |
Hi,
I put this issue up for discussion. In my fork of networkD3 (https://github.com/fbreitwieser/networkD3/commits/master) I have implemented several ideas for the Sankey plot.
el.getBoundingClientRect()
as done by @timelyportfolio in sunburstR'ssunburst.js
\r\n
instead of<br>
in tooltipsLet me know which of those changes are of interest to you.
Best,
Florian
The text was updated successfully, but these errors were encountered: