networkD3 icon indicating copy to clipboard operation
networkD3 copied to clipboard

Wish: possibility to influence sankey label alignment vs nodes

Open ugroempi opened this issue 6 years ago • 2 comments

Thanks for providing networkD3!

I have been playing with displaing a sankey diagram of voter migration (similar to here). sankeyNetwork defaults to displaying the node labels inside, i.e. on top of the visualization. For this application, I would strongly prefer to have the labels in the margins, and I have not found a way to achieve that.

Did I overlook something? If not, here is my wish: it would be great if users could influence the position of the label relative to its node (e.g. similar to the pos argument in the base R text command).

Best regards, Ulrike

ugroempi avatar Nov 11 '17 14:11 ugroempi

That ability is not built in, but there are a number of workarounds on Stack Overflow, e.g. https://stackoverflow.com/a/45495841/4389763

Building this in would not be trivial, but maybe someone would be willing to do it?

cjyetman avatar Nov 11 '17 14:11 cjyetman

Thanks for the pointer!

ugroempi avatar Nov 11 '17 16:11 ugroempi