This repository has been archived by the owner on Nov 7, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 684
More functionality for sankey.js #120
Open
michaelgasser
wants to merge
8
commits into
d3:master
Choose a base branch
from
michaelgasser:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Links defined with 2 additional points. The links starts and ends with a short horizontal part, ensuring that arrows can be placed properly. - Minimal curvature to ensure nicer visuals for links going backwards (so far only if you move a target node more left than a source node (proper backlinks not implemented yet).
This reverts commit e369524.
as before, now without tab
added support for vertical target links using the attribute vertical
- rearranged variable usage for x0-5 and y0-5 to make more sense. - changed flow of code to make variable assignments more clear. - curve interpolation now from x,y 1 to x,y 4.
- If a posX attribute is specified in the node definition it will be used to set the node depth. The values specified are scaled in order to use the whole svg canvas. - Using absoute placements also allows for backlinks (albeit not that nice yet).
using the posY attribute in the note defintion, the node depth (y location) can be set. Crude implementation, but it works
straigth path segments extended for better visualisation of "fat" links.
FYI: |
fbreitwieser
added a commit
to fbreitwieser/d3-sankey
that referenced
this pull request
Oct 19, 2016
- has several modifications from networkD3 sankey.js - included fixes and features from unmerged pull requests: - d3/d3-plugins#124: Fix nodesByBreadth to have proper ordering - - d3/d3-plugins#120: Added 'l-bezier' link type - d3/d3-plugins#74: Sort sankey target links by descending slope - d3#4: Add horizontal alignment option to Sankey layout - added option numberFormat, default being ",.5g" (see , fixes christophergandrud/networkD3#147) - added option NodePosX, fixes christophergandrud/networkD3#108 - added option to force node ordering to be alphabetical along a path (only works well with trees with one parent for each node, but might fix christophergandrud/networkD3#153)
fbreitwieser
added a commit
to fbreitwieser/sankeyD3
that referenced
this pull request
Oct 19, 2016
Changelog: - ported to D3 v4 - based on https://github.com/d3/d3-sankey - added several modifications from networkD3 sankey.js - included fixes and features from unmerged pull requests: - d3/d3-plugins#124: Fix nodesByBreadth to have proper ordering - d3/d3-plugins#120: Added 'l-bezier' link type - d3/d3-plugins#74: Sort sankey target links by descending slope - d3/d3-sankey#4: Add horizontal alignment option to Sankey layout - added option numberFormat, default being ",.5g" (see , fixesristophergandrud/networkD3#147) - added option NodePosX, fixes christophergandrud/networkD3#108 - added option to force node ordering to be alphabetical along a path (only works well with trees with one parent for each node, but might fix christophergandrud/networkD3#153)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
I have added some additional functionality and better link handling to sankey.js