I’m working with Plotly’s Sankey diagrams in Python and I would like to display the values on the links permanently, not just when hovering. I’ve looked through the documentation and source code but couldn’t find a property to achieve this.
Current behavior:
- Values only show when hovering over links
I’ve tried:
- Setting various link properties (label, hoverinfo, hovertemplate)
- Checking the source code for properties (plotly.py/packages/python/plotly/plotly/graph_objs/sankey/link at master · plotly/plotly.py · GitHub)
- Looking through the documentation. All examples only show values when hovering (Sankey diagram in Python)
I know it’s a different site, but on sankeyart, it’s displayed nicely and allow easy toggle on-off (which should be doable with dash)
Is there a way to achieve this in Plotly?
EDIT:
So, I looked at the plotly.js github issues, and it seems like there has been this issue open for a couple of years: add optional text on Sankey links · Issue #4746 · plotly/plotly.js · GitHub
I guess it’s not possible…