All changes to networkD3 are documented here.
Additions referenced with relevant GitHub Issue or Pull Request number. Please see those for more details.
- Minor link changes
-
Highlights links to nodes on hover in
forceNetwork. pull/#178 -
Arrow heads enabled for directed networks in
forceNetworkwitharrows = TRUE. pull/#182.
-
Node titles enclosed in
<pre>tags. pull/#180 -
simpleNetworknow an alias offorceNetworkrather than separate. pull/#181 -
Resolved regression from d3.js V4 upgrade where
forceNetworkgraphs were not centered in Shiny apps. pull/#179 -
Updated URL links in documentation.
- Improved examples for d3.js v4+
- Upgraded to d3.js version 4.5.0 from version 3.5.2. HUGE thanks to CJ Yetman who did basically all of the work for this. #143
- Explose
sinksRightoption forsankeyNetworkso that users can decide not to have the last nodes moved to the right border. Thanks to Florian Breitwieser.
simpleNetwork,forceNetwork, andsankeyNetworkshould now work withtbl_dflink and node data frames. Thanks to @mexindian for suggesting.
-
Add resize to sankeyNetwork for flexdashboard. Thanks to Kenton Russell for adding.
-
Fixed a bug where
SourceandTargetlabels were not properly concatenated insankeyNetworktooltips. Thanks to Tuija Sonkkila for reporting. -
Improved
igraph_to_networkD3so that it now handles more general weight names. Thanks to Maurits Evers for reporting.
-
forceNetwork,simpleNetwork, andsankeyNetworkgenerate errors if data does not appear to be zero-indexed. Thanks to Peter Meissner for prompting this addition. -
Bug fix for
igraph_to_networkD3so that it now accepts the value attribute. Thanks to Louis Goddard. -
Bug fix for
diagonalNetworkwhen using hierarchical lists with singular connections. Thanks to @RohdeK. -
Fix viewbox position when rerendered in shiny. Thanks to @RohdeK.
-
Added the
iterationsargument tosankeyNetwork, which adjusts the y-axis positioning. Thanks to @giko45.
-
Added the function
igraph_to_networkD3to convert anigraphclass object to a list that can be used with networkD3. -
Fixed a bug where
linkColourwas not actually passed to the widget fordiagonalNetworkandradialNetwork. Thanks to Pierre Formont.
-
forceNetworknow allows you to supply a vector of colours to thelinkColourargument. This enables the user to highlight links to specific nodes. Thanks to Garth Tarr. -
Minor documentation improvements.
-
Added
NodeGroupandLinkGroupparameters tosankeyNetworkso links can be colourised. Thanks to Edwin de Jonge. -
fontFamilyis now applied to legends inforceNetwork. Thanks to Casey Shannon. -
Improved bounding behaviour with
forceNetwork. Now bounds both the links and nodes. Thanks to Koba Khitalishvili.
- Fixed an issue with sankey viewBox sizing.
-
sankeyNetworkfully supports cycles -
sankeyNetworkgets same responsive sizing and better fitting introduced in 0.2.4 fordiagonalNetworkandradialNetwork. -
sankeyNetworkgets same full margin control introduced in 0.2.4 fordiagonalNetworkandradialNetwork.
- Added
chordDiagramto show directed relationships among entities.
-
More robust margin argument for
diagonalNetworkandradialNetworkallows for a single value or specification oftop,right,bottom, andleftby namedvectororlist. -
Responsive sizing using the
viewBoxattribute ofsvgfordiagonalNetworkandradialNetworkshould allow for fitting in the container with no fiddling.
-
Internal improvements to reduce dependencies: no longer depends on RCurl, plyr, and rjson.
-
Updated examples:
-
Using jsonlite makes JSONtoDF obsolete with the
fromJSONfunction. -
All Github data links now use the CDN link from rawgit, so the examples should be more inline with Github raw policies.
-
sankeyNetworkchanges:-
Removes forced font family in favor of inherited from css or specified through the
fontFamilyargument. -
Fixes issue with backslashes in the label for links.
-
Puts unicode right arrow in the tooltip. Adds argument to specify units for the tooltip label.
-
Handles cycles by updating this forked repo: https://github.com/soxofaan/d3-plugin-captain-sankey.
-
Makes assumptions that
Sourceis column 1 andTargetis column 2 if not provided.
-
-
Fixed an issue with
forceNetworkon Firefox. Thanks to @agoldst. -
Fixed an issue where
forceNetworknode size would not return to default after mouseover. Thanks to Pascal Pernot.
-
Added
dendroNetworkto create hierarchical cluster network diagrams (dendrograms). -
treeNetworkis DEPRECATED. -
Placed functionality from
treeNetworktoradialNetwork. The newradialNetworkfunction has the same functionality, but has been renamed to be more accurately descriptive and avoid confusion withdendroNetwork. -
Added
diagonalNetwork, which creates tree network diagrams using diagonal instead of radial nodes.
Thanks to Jonathan Owen.
-
Added
clickActionargument toforceNetworkto allow the user to pass a JavaScript expression through to be activated on click of a node. Thanks to Peter Ellis. -
Added
boundedargument toforceNetworkto allow the user to create a bounding box for the plot. See http://bl.ocks.org/mbostock/1129492. Thanks to Charles Sese. -
Added
fontFamilyargument toforceNetwork,simpleNetwork,sankeyNetwork, andtreeNetwork. Thanks to Peter Ellis. -
Added
opacityNoHoverargument toforceNetworkto set the opacity of node labels when nodes are not hovered over. Thanks to Peter Ellis.
-
Include
JSfrom htmlwidgets, to make it easier for users to pass arbitrary JS to more arguments. -
Other internal code and documentation improvements.
fontSizeused for all functions rather thanfontsize. Thank you to @Hunter-Github for spotting this inconsistency.
- Minor improvement to treeNetwork documentation. Thanks to Steven Beaupré and MrFlick.
-
forceNetworkgains three new arguments.-
legendallows you to add a node colour legend. -
radiusCalculationandNodesizeallow you to vary node radius by some values.
-
Thank you to Charles Sese for these additions.
-
zoomargument added tosimpleNetworkandforceNetworkto allow zooming. Thanks to @timelyportfolio. -
Updated
treeNetworkURL.
- Update link in
forceNetworkexample.
Enhanced flexibility when using data frames manipulated with dplyr/data.table. Thanks to Kevin Kuo.
- Minor internal correction to d3.js version number.
-
treeNetworkadded allowing the user to create tree networks. Thanks to B.W. Lewis. -
Upgrade to d3.js version 3.5.2.
-
sankeyNetworkadded. -
colourScaleargument added toforceNetworkandsankeyNetworkto allow the user to change the node colour scale.