问题
I would like to build a sankey diagram that highlights a path from end to end. I would like to use something free and that doesn't require me to upload data to do so.
This Tableau visualization has exactly the functionality I want- when you hover over one link you can see the entire trajectory from start to finish without highlighting any other link that intersects with the same nodes and each of the link segments align cleanly: https://public.tableau.com/profile/actinvision#!/vizhome/SuperstoreInteractiveSankeyShowcase/Sankey
I have been looking into the networkD3 package in R; the example at Christopher Gandrud’s github site even uses data in a format that I understand.
But how do I change the highlighting functionality?
And how do I make sure that the highlighted path isn't broken? Once the whole path is highlighted I am hoping to also avoid having misaligned links (which would look something like this: http://qinming.github.io/d3-sankey-with-highlighting/ )
Thank you.
来源:https://stackoverflow.com/questions/46795534/sankey-diagram-in-r-networkd3-or-d3-end-to-end-highlighting