Open maverikster opened 7 years ago
This is a feature request. You don't have such position control of the nodes. As a workaround you can combine two diagrams together at the same position to make them look like a one. Just make the areas of two diagrams different in sizes. Take a look at my example: http://kardash.net/styled_sankey/examples/treasury.html Notice that nodes on far right (Financial Products) belong to the second diagram.
As a node can have specific properties, I'd like to use these to 'force' the x and y position of a node to be within specific areas, based on node properties.
For exampe, if node.category="cat1", then x position can only be between 0 and 100 and y position between 0 and 100, whereas if node.category="cat4", then x can be between 100-200 and y between 100 and 200.
Although this might go against the nature of sankey diagrams to an extend, it will help to visualize the node categories by their relative positions. Is there a way to force min and max positions when calculating node X and node Y positions?