Recreating a sankey diagram
February 12, 2025This week I recreated a sankey diagram from La Nación on the flow of international flights from Argentina. Gus Wezerek participated in its creation.
Warning: Data may be inaccurate compared to the source.Recreation
Highlights
This is the first sankey diagram I've done with D3 and I'm happy with the result. It was much easier than I expected and as always, the official documentation helped me.
- The big protagonist: d3-sankey. It reminds me of the first time I used d3-hierarchy, they have a similar structure and it was easy to implement it. d3-sankey does all the work and it's enough to follow the documentation. I find it strange that it's not included in the core of D3.