Using hoverinfo and hovertemplate in sankey diagram

I am trying to add some hover data to each node in a Sankey Diagram, I have tried both hoverinfo and hovertemplate but I can’t get them to work. I have searched online and there have been a few questions about this, even a bug report on GitHub (
), but I’m not sure this was fixed properly.

three reasons why you should buy plotly pro: support open source, get great support, host your plots and dashboards online