The Sankey graph is cropped incorrectly.

As can be seen in the graph, the graph appears cropped at the bottom and other destinations cannot be correctly displayed.

What am I doing wrong that is preventing me from viewing the full data?

After much trial and error, I found that the cropping issue occurs when the weight metric within the Sankey diagram is set to zero. In such cases, the iteration of the graph behaves incorrectly, leading to an incomplete visualization. When one of the connections has a weight of zero, it seems to disrupt the rendering process, which results in the graph being cropped at the bottom. By ensuring that no weight value is zero (or filtering it), the graph should render properly without cropping.

2 Likes

This worked for me! Thank you for posting your solution and saving me hours of my own trial & error.

1 Like