-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
This is very nice visualization for showing a flow diagram. However, I'm not sure if this is by design or possibly a bug, but when a node that shares a link a sibling node, a duplicate/orphan node is created (instead of just the Sankey funnel pointing to the shared node). Consider this code:
const nodes = {
0: {
title: 'Col 1',
value: 20,
id: '0'
},
1: {
title: 'Col 2.1',
value: 10,
id: '1'
},
2: {
title: 'Col 2.2',
value: 15,
id: '2'
},
3: {
title: 'Col 3.1',
value: 5,
id: '3'
},
4: {
title: 'Col 3.2',
value: 5,
id: '4'
}
};
const links = [
{ sourceId: 0, targetId: 1 },
{ sourceId: 0, targetId: 2 },
{ sourceId: 1, targetId: 3 },
{ sourceId: 2, targetId: 3 },
{ sourceId: 2, targetId: 4 },
];
I would expect that { sourceId: 2, targetId: 4 } would point to the shared node 4 (it does so correctly). But, there is also an additional node 4 that is now an orphan.
Is there a way I can eliminate the extra node and just have shared links? Thank you in advance.
Metadata
Metadata
Assignees
Labels
No labels