christophergandrud / networkD3

D3 JavaScript Network Graphs from R
http://christophergandrud.github.io/networkD3
652 stars 268 forks source link

sankeyNetwork resize/refresh does not work #122

Closed fbreitwieser closed 8 years ago

fbreitwieser commented 8 years ago

First, thanks for this great package.

I include a Sankey network in my program which is updated based on user input. However, it resizes and zooms into the network with the updates, instead of showing the full network. I found that when I comment out the viewBox code in sankeyNetwork.js, and un-comment the resize function code, it works as expected (though it re-draws the Sankey).

mcharles commented 8 years ago

I also have an issue with resizing of Sankey networks (in the context of a htmlwidgets & R Flexdashboard). Any update on this issue? @fbreitwieser - is this the workaround you continue to use or have you found something else?