Sankey Chart
Sankey diagrams in REAVIZ provide a powerful way to visualize and analyze flows of energy, materials, or costs within a system. They help in identifying major transfers and understanding resource distribution, making them a valuable tool for data visualization.
Where to use:
- Visualize Flow Quantities: Ideal for displaying flows of energy, materials, or costs.
- Highlight Major Transfers: Useful for emphasizing significant transfers within a system.
- Analyze Resource Distribution: Great for analyzing how resources are distributed and transferred.
Quick Start
To create Sankey Chart, import the Sankey, SankeyNode and SankeyLink and then define the nodes and then links. The chart will automatically configure itself with the default options exposed via props.
As default, the Sankey chart shows the link/flow with gradation based on
the given colorScheme. You can turn off the gradation by passing false
to SankeyLink componentβs gradient property (e.g. gradient={false}).
Configuration
To render, the nodes and links of the Sankey
component are required and colorScheme is optianal but is recommended to spacify
to make Sankeys easier to interpret.
- Nodes: Define the nodes using the SankeyNode component. Each node can have a title and id.
- Links: Define the links using the SankeyLink component. Each link requires source, target, and value properties. The source and target can be the index of the nodes array or the nodeβs id