Sankey is a flow diagram in which the width of the arrows is proportional to the flow rate. It is typically used to visualize energy or material or cost transfers between processes.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/recharts/recharts/llms.txt
Use this file to discover all available pages before exploring further.
Props
The source data, including the array of nodes, and the relationships, represented by links. Each node should have a unique index in the nodes array, and each link should reference these nodes by their indices.
The width of chart container. Can be a number or a percent string like “100%”.
The height of chart container. Can be a number or a percent string like “100%”.
Empty space around the container.
The width of node.
The padding between the nodes.
The curvature of width.
The number of the iterations between the links.
If set an object, the option is the configuration of nodes. If set a React element, the option is the custom react element of drawing the nodes.
If set an object, the option is the configuration of links. If set a React element, the option is the custom react element of drawing the links.
Whether to sort the nodes on the y axis, or to display them as user-defined.
Controls the vertical spacing of nodes within a depth. ‘justify’ distributes nodes evenly and balances link paths, while ‘top’ positions the group starting from the top edge of the chart.
If set to ‘justify’, the start nodes will be aligned to the left edge of the chart and the end nodes will be aligned to the right edge of the chart. If set to ‘left’, the start nodes will be aligned to the left edge of the chart.
Name represents each sector in the tooltip. Can be a string key name, number index, or function.
dataKey prop in Sankey defines which key in the link objects represents the value of the link in Tooltip only.
The customized event handler of click on the area in this group.
The customized event handler of mouseenter on the area in this group.
The customized event handler of mouseleave on the area in this group.
CSS class name for the chart container.
Inline CSS styles for the chart container.
The unique id of chart.
Decides the time interval to throttle events.