Created with Idyll and Vega-Lite.
This project is built using Idyll. To use Idyll you must first install node and npm, which you can get by following these instructions.
Then, from this project root directory, run:
npm install
The main elements of the project are:
index.idyll
- the main Idyll file, article text is in herestyles.css
- custom stylescomponents/
- custom map componentsnotebooks/
- preprocessing steps to produce static imagesstatic/
- images and datapackage.json
- project configuration
To run the project locally, in live-reload development mode:
npm start
To build the project into a static HTML site in the build/
directory:
npm run build
To deploy the project to GitHub pages:
npm run deploy
To copy the article text into a Word document (requires pandoc) with some formatting applied:
npm run extract
Data preprocessing and static visualisation is run using the Python Jupyter
notebooks in notebooks
.
Development note - use nbstripout to avoid storing notebook output in git (and keeping git history minimal):
nbstripout --install
To configure the location of the shared data folder, copy config.template.json
to config.json
and edit the data_folder
value.
To run the notebook, install Python and dependencies, then run:
jupyter notebook
Design and development by Heidi Mok.
The analysis presented has been carried out by researchers at the University of Oxford and Newcastle University in the UK, funded by the Alan Turing Institute (ATI).