Key in link objects for the node the flow arrives at.
OptionalnodesThe nodes half of the <Sankey> data, used to resolve the numeric
indices Recharts links carry into node names.
Recharts addresses nodes by their position in this array, and an index is not something to announce — "flow from 3 to 7" names neither end. Omit it only when the links already carry node names.
OptionalnodeKey in node objects for the node's name. Mirrors <Sankey nameKey>, and defaults to 'name'.
OptionalalignWhere <Sankey> draws a node nothing flows out of: 'justify', Recharts'
default, draws every such node in the last column, and 'left' one
column past the furthest node feeding it. Mirrors <Sankey align>, which
MaidrRecharts reads when this is not given; through
useRechartsAdapter, give it when the chart sets align="left".
With nodes, the columns are declared from it, so MAIDR reads each node
in the column it is drawn in.
Configuration for a flow diagram. Required when
chartTypeis'alluvial'or'sankey'.The
dataarray is thelinkshalf of what Recharts'<Sankey>is given: one row per flow.xKeynames the field holding the source node and the singleyKeysentry the field holding the magnitude, so only the target needs a key of its own.