Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
circular-migration-plot
Advanced tools
Readme
Creating interactive circular migration plots for the web using D3, like http://www.global-migration.info/
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]
--regions
, -r
: Sort order for regions--pretty
, -p
: Pretty print result JSONcmp-compile flows.csv
cmp-compile -
cat flows.csv | cmp-compile
cmp-compile flows.csv --regions North,West
cmp-compile flows.csv --regions North,West --pretty
<script src="dist/circular-migration-plot.js"></script>
<div id=timeline></div>
<div id=chart></div>
<script>
CircularMigrationPlot({
data: 'json/sample.json',
chart: '#chart',
timeline: '#timeline'
});
</script>
See index.html.
head -n30 data/flows.csv | cmp-filter data/countries.csv | cmp-compile > migration-flows.json
To run the unit tests:
npm test
For JShint:
npm run jshint
The JavaScript is build using Browserify and then compressed with UglifyJS:
npm run build
Packagued files land in dist
folder.
A development server can be run with
npm start
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.
FAQs
Creating interactive circular migration plots for the web using D3.
We found that circular-migration-plot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).