plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

Label alignment in nodes in Sankey plot

Open Clownshift opened this issue 4 years ago • 5 comments

Dear devs,

Recently, I have been playing around with Sankey plots in plotly. This tool is really great. I have been looking for a specific feature that I couldn't find in the API and in fact I believe it does not exist, yet. Would it be possible to specifiy the alignment of the labels in the nodes of a sankey plot? Specifically in vertical orientation, I believe the nodes would look much prettier, if the label may be horizontally aligned with the box.

I would imagine additional keywords for the node-dictionary like "horizontalalignment" and "verticalalignment". (As it is the case for matplotlib textboxes : https://matplotlib.org/3.1.1/tutorials/text/text_props.html)

Possibly, this is actually easily implemented, but I could not really figure out, how to do that myself.

Is it possible to add this feature?

Clownshift avatar Feb 19 '21 10:02 Clownshift

May I assume that nobody is interested in having a look at this? Or is this actually already possible, but I only couldn't figure out how? Or is this possibly a duplicate issue?

Clownshift avatar Mar 04 '21 14:03 Clownshift

+1 for this feature request. It is really missing functionality. Without it big chats really hard to organize and make them readable.

hyzhak avatar Jul 07 '21 00:07 hyzhak

@Clownshift, could it be your request duplicates #3004? (Not a plotly dev, just happened to come across both issues.)

firstdayofjune avatar Jul 26 '22 08:07 firstdayofjune

Actually, yes. Seems to be a duplicate. As far as I understand, "textposition" in #3004 refers to what I mean with "alignment".

@Clownshift, could it be your request duplicates #3004? (Not a plotly dev, just happened to come across both issues.)

Clownshift avatar Jul 26 '22 11:07 Clownshift

Has anyone found a solution?

auguste-dupin avatar Sep 15 '22 12:09 auguste-dupin