I have 10 points that represent the centres of countries. I want to show with arrows the flow (some kind of trade) from one country to another.

The way that my table of attributes is constructed is the following:

From country X Y To country X_to Y_to Value 1 X Y 2 X_to Y_to 10

I want the arrows to be proportional to the value and not to be straight lines but curved as it may be the case that 2 countries exchange trade, i.e. country 1 sends to country 2 and country 2 sends to country 1.



If you know how to use javascript and d3, then the spatialsankey d3 plugin might help. Here is an example application that does something similar to what you ask, though only to show flows in one direction.

  • Unfortunately I cannot!
    – dimitris
    Oct 1 '14 at 8:34
  • Is it working? I downloaded the data here: gist.github.com/yellowcap/03cd4a6c72f661377f7e but I just got the map, the data doesn't seem to load
    – Albert
    Feb 22 '17 at 7:23
  • Oh, it is working. The problem was "cross origin" one using Chrome. It works in Firefox or from a server. Great work by the way yellowcap, thank you!
    – Albert
    Feb 22 '17 at 7:51
  • Thanks Albert! Glad it worked. Do you know how I could update it so that it works in chrome as well? The online "bl.ocks.org" version does works on chrome I think.
    – yellowcap
    Feb 25 '17 at 13:22

A search with Google threw up these pages...



Someone has even created a tool that flows around country boundaries.


Not the answer you're looking for? Browse other questions tagged or ask your own question.