You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation doesn't allow repeated names across categories in Alluvial charts. If I do that I get a "circular link" error thrown by the d3-sankey lib. I dig a bit in the code and I think it's because the name is being used as the nodeId but I'm providing repeated names in different nodes, which causes ids not to be unique.
Justification
Let's say we asked some users to sort a list of three colors by their preference, and we want to represent that as flows using an Alluvial chart. Something like this:
Note: totally made up numbers that don't make any sense
I was able to make it work by including the category names (First, Second, Third) as part of the node names to make them unique.
Summary
The current implementation doesn't allow repeated names across categories in Alluvial charts. If I do that I get a "circular link" error thrown by the
d3-sankey
lib. I dig a bit in the code and I think it's because the name is being used as thenodeId
but I'm providing repeated names in different nodes, which causes ids not to be unique.Justification
Let's say we asked some users to sort a list of three colors by their preference, and we want to represent that as flows using an Alluvial chart. Something like this:
Note: totally made up numbers that don't make any sense
I was able to make it work by including the category names (First, Second, Third) as part of the node names to make them unique.
Sandbox
The text was updated successfully, but these errors were encountered: