-
Notifications
You must be signed in to change notification settings - Fork 2
build
Dan Ellis edited this page Nov 17, 2022
·
1 revision
This route extracts the relevant tables from Nomis, and compiles the url string needed for the embed route.
4.0K │ │ ┌── gettable.js │ ░░▒▒▒█ │ 1%
12K │ │ ├── +page.svelte │ ░░▒▒▒█ │ 2%
72K │ │ ├── newtables.json │ ░░▒███ │ 10%
100K │ ├─┴ build
Functions that are used to download the Nomis tables selected for our dataset.
Config file for each table
The main page file
The main function called after all svelte components have been mounted
Contains:
- hash processing functions
- set geography
- compressed strings, and assign properties from localstorage
A function to check if we already have a table, and if not, download it.
- update the local storage str
- generate the codes
- create embeddable cache string
- update the embed iframe
Triggers a reload/redirect of the embed iframe
Documentation provided for the Office of National Statistics Build a Custom Profie application. ONSVisual (2022)