fbreitwieser / sankeyD3

D3 Sankey Network Graphs from R
65 stars 27 forks source link

export widget for static sankey client-side #3

Closed timelyportfolio closed 6 years ago

timelyportfolio commented 7 years ago

I just changed exportwidget to use fabric.js instead of the previously crowbar-hacked method. I can't remember where the question was asked, but I thought it involved Sankey. Here is the live example of sankey + exportwidget.

fbreitwieser commented 7 years ago

It was @daattali in https://github.com/christophergandrud/networkD3/issues/155 . Nice update to fabric.js! I'll try it and add it to the documentation.

daattali commented 7 years ago

Thank you both!

fbreitwieser commented 6 years ago

Added saveNetwork (copied over from networkD3), which uses htmlwidgets::saveWidget() to export the widget