lucified/lucify-asylum-countries

Name: lucify-asylum-countries

Owner: Lucify

Description: A visualisation that shows the number of asylum seekers per country in Europe

Created: 2016-01-26 15:28:43.0

Updated: 2017-06-03 20:03:29.0

Pushed: 2018-02-14 13:15:34.0

Homepage: null

Size: 9095

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Visualising the amount of asylum seekers to European countries

A visualization of the amount of asylum seekers to European countries from 2012 onwards. It is based on UNHCR data. See the visualisation online.

Visualisation screenshot

This project was built for and funded by the In-house Information Design pilot for the Yhtäköyttä project. The project is a part of the Prime Minister's Office of Finland's analysis, assessment and research activities.

This project uses a combination of React, D3.js and C3.js.

Development
Dependencies
Setup and running

Run the following in the project directory:

  1. bundle install
  2. yarn
  3. yarn start

To regenerate the data, run ./prepare.sh.

Distribution build

The project has been configured to build a distribution that assumes that it will be hosted in a public path of embed/lucify-asylum-countries/.

You can change this by modifying the assetContext attribute in lucify-opts.js.

Build a distribution to the folder dist with:

 build
Unit tests

Run unit test with the command mocha in thr project directory.

Embed codes

The build automatically creates a file called embed-codes-custom.html alongside index.html. It contains embed codes for embedding the visualisation into other pages through an iFrame.

Data source

UNHCR monthly asylum applications

If you update the data, you can change the time range of the visualization by updating the values in src/js/model/refugee-constants.js.

Automatic download

Run the included download script:

c/scripts/download-unhcr-data.sh

Run ./prepare.sh to generate the JSON file for the visualization.

Manual download

If you prefer to download the data manually, open the UNHCR asylum applications data portal, select the options below and click on Export / Current View / CSV:

Save the resulting file as data/unhcr_popstats_export_asylum_seekers_monthly.csv, remove the first four (header) rows and run ./prepare.sh to generate the JSON file for the visualization.

Authors

Have feedback? Contact us!

Copyright and license

Copyright 2016-2018 Lucify Ltd. Code released under the MIT license.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.