Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
circular-migration-plot
Advanced tools
Readme
Creating interactive circular migration plots for the web using D3, like http://www.global-migration.info/ and http://www.german-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.
The npm package circular-migration-plot receives a total of 3 weekly downloads. As such, circular-migration-plot popularity was classified as not popular.
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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.