Sankey Diagram
✓ Published0🌍 Public
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 descriptionMIT Licensed