christophergandrud / networkD3

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

Sankey Transitions #154

Open tomliptrot opened 7 years ago

tomliptrot commented 7 years ago

Thanks for a great package.

I know very little javascript and it allows me to do all sorts of good things.

I have a request for a modification to the sankey plot. Might it be possible to add a smooth transition with new data?

There seem to be instructions on how to do this here: http://stackoverflow.com/questions/13603832/sankey-diagram-transition

With an example here https://www.betterment.com/resources/investment-strategy/portfolio-management/portfolio-diversification/

christophergandrud commented 7 years ago

@timelyportfolio knows better than me on this, but my initial thought is that you should be able to achieve this by combining networkD3 in a shiny web app.

timelyportfolio commented 7 years ago

This is definitely possible. Sorry, I have not had a chance to tackle yet. I do plan to get to it though.