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.

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.

What does the proposed API look like?
label.position = "auto"
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.
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.

What does the proposed API look like?
label.position = "auto"