plotly / plotly.js

Open-source JavaScript charting library behind Plotly and Dash
https://plotly.com/javascript/
MIT License
16.86k stars 1.85k forks source link

add optional text on Sankey links #4746

Open emmanuelle opened 4 years ago

emmanuelle commented 4 years ago

At the moment Sankey nodes display their labels as text, but for the links one can only have text on hover. It would be great to have an option to display text inside (or just above) the links.

Related issue: add optional text to histogram and to heatmap traces (which would remove the need for annotated heatmap figure factory).

antoinerg commented 4 years ago

Do you have any suggestions about how the users would specify this? Do we need a new attribute?

cc @nicolaskruchten

emmanuelle commented 4 years ago

maybe just a texttemplate which would be empty by default? And/or textinfo as in pie or funnel?

kenakofer commented 1 year ago

Yes please. It's strange that in the case of Sankey links, specifying a label is actually just specifying a hovertemplate.

wattcommunity commented 4 months ago

OK a Sankey is a visualisation tool, but come on, seeing the magnitude of the pipes in a png export is like, why wouldn't you make this doable! Sorry to gripe; but other Sankey tools are pants and so plotly's offer is a last gasp saloon.

ccpjulia commented 4 months ago

I can see that there is a label attribute for link, but adding labels to it does nothing. And agreed being able to specify texttemplate would also be great.

iyliahutta commented 4 days ago

is this in development or will be anytime soon? would really love to have this feature and i doubt i'm the only one.