/census-prototypes

This is a summary of the various prototypes that are being developed by the ONS data vis/journalism team for Census 2021.

Census 2021 Product Prototypes

This is a summary of the various prototypes that are being developed by the ONS data vis/journalism team for Census 2021.

Core products

These are the main products that we intend to release in some for in time for publication of Census 2021 data. The links below are to the most recent prototypes. URLs are likely to change.

  • Census atlas - Explore geographic patterns in data down to a small area level.
  • Area reports - 'Robo-journalism' reports highlighing significant changes in an area between censuses. See also this earlier demo.
  • Area explorer - Navigate through geographic hierarchies and see population data with change from previous census.
  • Key population explorer - Select a sub-population group and see how it compares to others (relies on Cantabular API). See also this earlier demo.
  • Draw your geography - Draw a custom geography and get data, lookups and boundaries (relies on Nomis API and ONS Geography Linked Data).
  • Build an area profile - Build an embeddable/downloadable mini-area profile. Select an area and select datasets.
  • Hex map game - Higher/lower geography quiz game on a hex map (this link is to an earlier version).

Libraries

These are the shared libraries of components and templates that will support the above products as well as other releases.

  • Scrollytelling template - Rich media template with scrollytelling functionality. See also proof-of-concept for importing ArchiML.
  • Chart component library - Chart components built in Svelte. Can be imported via NPM or used in vanilla JS.
  • Map component library - Mapbox GL JS components built in Svelte. Can be imported via NPM.
  • UI component library - Not online yet. Some examples can be found here and here (and also within other demos).
  • Census data over time pipeline - Not online yet. Python scripts for aggregating consistent data across censuses. Sample data here.

In the Wild

Published ONS releases building on the various prototypes and code in development for Census 2021.

Other demos

Mapping examples

Charts

  • Animated scatter plot - Example using Layer Cake and REGL to animate 10,000s of points with WebGL.
  • Accurate beeswarm plots - Algorithm for calculating accurate + compact beeswarm plots.
  • Waffle chart - Simple HTML + CSS based waffle chart suitable for pre-rendering (requires CSS Grid support).
  • Histogram chart - Chart for summarising small area data (used in an earlier version of "census atlas").

Place search

  • Simple postcode API - A postcode > geography search based on flat file chunks from the National Statistics Postcode Lookup.
  • Combined postcode + area search - Get a geography from a predefined list or postcodes.io search depending on query. Also uses a Topojson file to figure out which 1961 district a postcode long/lat falls within.
  • OS API search - Test for getting geographic data for postcodes, streets and cities/towns/villages from the Ordnance Survey Open Names API.

Games and quizzes

  • How well do you know your area? - Not online yet. Very basic demo here.
  • Guess the geography - Guess the name of an area based on a boundary on a map (relies on ONS Geography Linked Data API).
  • Census fake data quiz - Guess which characteristic three areas have in common.

Origin-destination data

Data repositories

Repositories with data and assets used by the above prototypes and demos.