Closed keeganhines closed 9 years ago
Sorry on my phone so cannot link to line numbers but there are helpers in htmlwidgets starting line 509 https://github.com/ramnathv/htmlwidgets/blob/master/inst/www/htmlwidgets.js. See line 31 https://github.com/christophergandrud/networkD3/blob/master/inst/htmlwidgets/forceNetwork.js for an example.
The choice was made to use the sparsest JSON representation and then transform in JavaScript.
was able to use jsonlite
to fix this; now takes inputs as described in the README and produces a network. this is commit a88829...
Currently broken because the dataframes from R are creating js objects that are malformed. The js code in
vivagRaph.js
expects the edge and node objects to be of the formBut the object that is created by
htmlwidgets
isNeed to reformat things from the
R
side, or altervivagRaph.js