Skip to content

Add option to automatically assign label position for sankey node labels #12890

@dominic-simplan

Description

@dominic-simplan

What problem does this feature solve?

There are many options for configuration a sankey label position: https://echarts.apache.org/en/option.html#series-sankey.label.position.
However, using the left or the right option, the labels might not be visible if the nodes are at the corner of the diagram.
grafik

An additional option which automatically finds the best position for the label (e.g. right, if the node is on the left half of the diagram, and left, if the node is on the right half of the diagram) would be useful.
grafik

What does the proposed API look like?

label.position = "auto"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions