I am trying to set up a Sankey graph where the nodes have a customised hover tooltip using the hovertemplate attribute.
I have been successful with getting the hovertemplate working, however I am struggling to understand and use the customdata attribute.
I have an object of arrays which match the array of nodes. I want to be able to add the object values to the respective nodes hovertemplates.
Here is a non working code example - https://jsfiddle.net/d7nz3je4/6/