Sankey fork
✓ Published0🌍 Public
This example displays the flow of values between cities using a fork-like structure, where multiple inputs split into numerous outputs across several stages. The visualization uses the D3.js Sankey plugin to layout and render the graph, with the `d3.sankey` function calculating node positions and link depths. The code defines a custom color scheme and uses SVG elements for drawing, with interactive features like hover effects on links and draggable nodes. Data is loaded from a JSON file containing city names and their connections, which is then processed and fed into the layout algorithm for rendering as a React component.
AI-generated descriptionReact Starter code.
MIT Licensed