Skip to content

add label alignment in nodes in Sankey plot #3080

Description

@Clownshift

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogfeaturesomething new

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions