Bill Marsh created a nice visual guide to the Euro debt crisis in today’s New York Times using a custom graph layout with directed edges. An alternative approach to visualizing asymmetric relationships among a group of entities is a chord diagram. Chord diagrams don’t show indirect relationships as well, but they better convey the magnitudes of the debt for each country.
This visualization uses two chord diagrams. The diagram on the left emphasizes how much each country lends (creditors); you can see Japan and France are the biggest lenders, but France is also the most exposed by its risky debts to Italy and Greece. The diagram on the right emphasizes how much each country owes (debtors); the United States has by far the largest debt, nearly three times the size of the next-largest debtor, Britain!
Built with D3.js.
This is a proof-of-concept to "untangle" the chords that get generated. The relevant lines are in d3.js:
line 6127 changed from:
subgroupIndex.push(d3.range(n));
to:
subgroupIndex.push(rotatearr(d3.range(n), i));
and added the roratearr() function right after that (line 6130):
function rotatearr(arr, val) {
return arr.concat(arr.slice(0, val)).reverse();
}