Skip to main content
100%

Sankey Diagram

✓ Published0🌍 Public
KKarkG
Last edited Nov 17, 2020
Created on Oct 13, 2020
Forked from Stylized Bar Chart

This interactive Sankey diagram visualizes Canadian defense budget allocations, showing how funds flow from high-level cost categories into specific military programs and assets. Built with D3 v4 and the d3-sankey plugin, the visualization renders nodes and links as SVG paths with animated transitions. Users can click nodes to edit input/output ratios and adjust budget contributions dynamically, while a color legend filters the diagram by military branch. The code uses d3.zoom for panning and scaling, d3.ordinal scales for color mapping, and transitions to animate layout changes.

AI-generated description
MIT Licensed

Similar vizzes