Open banderlog opened 3 years ago
I also stumbled over this strange behavior. It could be great if I do not need to check manually whether a node is empty before plotting because that adds quite some complexity to the code which should be generic. I would like to create some visuals that update with different data (think of it like a dashboard). Somehow I feel that this feature that we do not "need" to position empty nodes just creates more problems than it solves.
Bump. This is still broken.
Consider the next example
Plot sankey where all nodes are present:
Now try to rearrange nodes:
Everything works. Not without crotches (https://github.com/plotly/plotly.py/issues/3002, https://github.com/plotly/plotly.py/issues/1732), but works.
Now try plot where some nodes are missing, but we still want to arrange them:
Now arrange should work still because we have the same target, source, labels ans
len(values)
:It counts only non-empty nodes
Not sure if it is not plotly.js problem