All changes to networkD3 are documented here.
Additions referenced with relevant GitHub Issue or Pull Request number. Please see those for more details.
-
Highlights links to nodes on hover in
forceNetwork
. pull/#178 -
Arrow heads enabled for directed networks in
forceNetwork
witharrows = TRUE
. pull/#182.
-
Node titles enclosed in
<pre>
tags. pull/#180 -
simpleNetwork
now an alias offorceNetwork
rather than separate. pull/#181 -
Resolved regression from d3.js V4 upgrade where
forceNetwork
graphs 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
sinksRight
option forsankeyNetwork
so that users can decide not to have the last nodes moved to the right border. Thanks to Florian Breitwieser.
simpleNetwork
,forceNetwork
, andsankeyNetwork
should now work withtbl_df
link 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
Source
andTarget
labels were not properly concatenated insankeyNetwork
tooltips. Thanks to Tuija Sonkkila for reporting. -
Improved
igraph_to_networkD3
so that it now handles more general weight names. Thanks to Maurits Evers for reporting.
-
forceNetwork
,simpleNetwork
, andsankeyNetwork
generate errors if data does not appear to be zero-indexed. Thanks to Peter Meissner for prompting this addition. -
Bug fix for
igraph_to_networkD3
so that it now accepts the value attribute. Thanks to Louis Goddard. -
Bug fix for
diagonalNetwork
when using hierarchical lists with singular connections. Thanks to @RohdeK. -
Fix viewbox position when rerendered in shiny. Thanks to @RohdeK.
-
Added the
iterations
argument tosankeyNetwork
, which adjusts the y-axis positioning. Thanks to @giko45.
-
Added the function
igraph_to_networkD3
to convert anigraph
class object to a list that can be used with networkD3. -
Fixed a bug where
linkColour
was not actually passed to the widget fordiagonalNetwork
andradialNetwork
. Thanks to Pierre Formont.
-
forceNetwork
now allows you to supply a vector of colours to thelinkColour
argument. This enables the user to highlight links to specific nodes. Thanks to Garth Tarr. -
Minor documentation improvements.
-
Added
NodeGroup
andLinkGroup
parameters tosankeyNetwork
so links can be colourised. Thanks to Edwin de Jonge. -
fontFamily
is 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.
-
sankeyNetwork
fully supports cycles -
sankeyNetwork
gets same responsive sizing and better fitting introduced in 0.2.4 fordiagonalNetwork
andradialNetwork
. -
sankeyNetwork
gets same full margin control introduced in 0.2.4 fordiagonalNetwork
andradialNetwork
.
- Added
chordDiagram
to show directed relationships among entities.
-
More robust margin argument for
diagonalNetwork
andradialNetwork
allows for a single value or specification oftop
,right
,bottom
, andleft
by namedvector
orlist
. -
Responsive sizing using the
viewBox
attribute ofsvg
fordiagonalNetwork
andradialNetwork
should 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
fromJSON
function. -
All Github data links now use the CDN link from rawgit, so the examples should be more inline with Github raw policies.
-
sankeyNetwork
changes:-
Removes forced font family in favor of inherited from css or specified through the
fontFamily
argument. -
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
Source
is column 1 andTarget
is column 2 if not provided.
-
-
Fixed an issue with
forceNetwork
on Firefox. Thanks to @agoldst. -
Fixed an issue where
forceNetwork
node size would not return to default after mouseover. Thanks to Pascal Pernot.
-
Added
dendroNetwork
to create hierarchical cluster network diagrams (dendrograms). -
treeNetwork
is DEPRECATED. -
Placed functionality from
treeNetwork
toradialNetwork
. The newradialNetwork
function 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
clickAction
argument toforceNetwork
to allow the user to pass a JavaScript expression through to be activated on click of a node. Thanks to Peter Ellis. -
Added
bounded
argument toforceNetwork
to allow the user to create a bounding box for the plot. See http://bl.ocks.org/mbostock/1129492. Thanks to Charles Sese. -
Added
fontFamily
argument toforceNetwork
,simpleNetwork
,sankeyNetwork
, andtreeNetwork
. Thanks to Peter Ellis. -
Added
opacityNoHover
argument toforceNetwork
to set the opacity of node labels when nodes are not hovered over. Thanks to Peter Ellis.
-
Include
JS
from htmlwidgets, to make it easier for users to pass arbitrary JS to more arguments. -
Other internal code and documentation improvements.
fontSize
used 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.
-
forceNetwork
gains three new arguments.-
legend
allows you to add a node colour legend. -
radiusCalculation
andNodesize
allow you to vary node radius by some values.
-
Thank you to Charles Sese for these additions.
-
zoom
argument added tosimpleNetwork
andforceNetwork
to allow zooming. Thanks to @timelyportfolio. -
Updated
treeNetwork
URL.
- Update link in
forceNetwork
example.
Enhanced flexibility when using data frames manipulated with dplyr/data.table. Thanks to Kevin Kuo.
- Minor internal correction to d3.js version number.
-
treeNetwork
added allowing the user to create tree networks. Thanks to B.W. Lewis. -
Upgrade to d3.js version 3.5.2.
-
sankeyNetwork
added. -
colourScale
argument added toforceNetwork
andsankeyNetwork
to allow the user to change the node colour scale.