✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🧬 Learn how to build RNA-Seq data apps with Python & Dash. Register for the May 20 Webinar!

Plotly.py sankey diagram with custom nodes size

Hello community
I’m having two questions for the plotly.py Sankey diagram

I’m creating a Sankey, where each node represents a group of users, my nodes are organised over time periods, and a link is a migration of a group to another, each one in a different period of time,

The problem is that as a user can be in ‘n’ groups, the incoming flow of my nodes is multiplicated by ‘n’, and this makes the node size not realistic,

  1. Is there any way to set manually the size of nodes (height)?

The second point is that I would like to highlight migrations of a chosen user dynamically in the Sankey, ie for each link where the choosen user is, the link color should be highlighted, is it possible to do that ?

Thanks in advance!