This repository contains the source code for the Census 2021 origin-destination data explorer on the ONS website, including the scrollytelling article, and the embeddable interactive tools for migration flows and workplace flows.
The code is provided without warranty under an Open Government Licence (v3).
The Area hub is a Svelte Kit app, and requires NodeJS to be installed on your machine. You can run the code locally as follows:
- Download or clone the contents of this repo to your local machine.
- Install the Node dependencies by opening the folder running
npm install
from your command line. - Initialise the app by running
npm run dev
. - Preview the app in your browser by navigating to http://localhost:5173/.
Making changes to the app will require a working knowledge of Svelte Kit.
The necessary data files to run the app are included within the /static/data folder. These files are generated using custom scripts from the source data on Nomis. These scripts can be found in this repo.