Creating interactive circular migration plots for the web using D3.
Install globally with npm:
npm install circular-migration-plot -g
You may want to filter countries with small migration flows:
cmp-filter data/countries.csv data/flows.csv
Build the matrix json processible by the library out of the csv input file.
cmp-compile file [OPTIONS]
-r: Sort order for regions
-p: Pretty print result JSON
cmp-compile flows.csvcmp-compile -cat flows.csv | cmp-compilecmp-compile flows.csv --regions North,Westcmp-compile flows.csv --regions North,West --pretty
head -n30 data/flows.csv | cmp-filter data/countries.csv | cmp-compile > migration-flows.json
To run the unit tests:
npm run jshint
npm run build
Packagued files land in
A development server can be run with
Copyright (c) 2014 null2 GmbH Berlin
This work as well as the sample data is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.