text
stringlengths
331
391k
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"IMF Oustanding Credit Levels\", \"subtitle\": \"IMF outstanding credit levels from 1984 to 2022\", \"subtitleFontStyle\": \"Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/SamJones033/SamJones033.github.io/main/data_IMF_creditOutstanding.csv\"}, \"height\": 284, \"width\": 250, \"mark\": {\"type\": \"bar\", \"color\": \"#2b1d70\"}, \"encoding\": {\"x\": {\"field\": \"Date\", \"type\": \"ordinal\", \"axis\": {\"title\": null, \"grid\": false, \"ticks\": false, \"labelAngle\": 90}}, \"y\": {\"field\": \"Totals\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false}}}, \"config\": {}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"What % of energy has the UK imported in the last 60 years?\"}, \"description\": \"What % of energy has the UK imported in the last 60 years?\", \"data\": {\"url\": \"https://raw.githubusercontent.com/SamJones033/SamJones033.github.io/main/imports.csv\"}, \"height\": 290, \"width\": 300, \"mark\": \"bar\", \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"temporal\", \"title\": \"Year\"}, \"y\": {\"field\": \"imports\", \"type\": \"quantitative\", \"title\": \"% of energy imported\", \"scale\": {\"zero\": true}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"What percentage of workers are waged or salaried?\"}, \"width\": 340, \"height\": 290, \"data\": {\"url\": \"https://raw.githubusercontent.com/SamJones033/SamJones033.github.io/main/basic2.csv\"}, \"mark\": \"line\", \"encoding\": {\"x\": {\"field\": \"year\", \"title\": \"Year\"}, \"y\": {\"field\": \"wage\", \"type\": \"quantitative\", \"title\": \"Percentage of workers who are waged or salaried\", \"scale\": {\"domain\": [84, 90]}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Foreign Direct Investment - inward\", \"subtitle\": [\"Total FDI in the UK (\\u00a3, billions). [ONS, PB-N2SA]\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 280, \"height\": 260, \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/n2sa/dataset/pb/data\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"params\": [{\"name\": \"minYear\", \"value\": 1987, \"bind\": {\"input\": \"range\", \"min\": 1987, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2021, \"bind\": {\"input\": \"range\", \"min\": 1987, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"transform\": [{\"calculate\": \"datum.value/1000\", \"as\": \"billions\"}, {\"filter\": \"datum.date>=minYear\"}, {\"filter\": \"datum.date<=maxYear\"}], \"mark\": {\"type\": \"line\", \"color\": \"#00BFFF\", \"strokeWidth\": 2}, \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"billions\", \"type\": \"quantitative\", \"title\": null}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/SamJones033/SamJones033.github.io/main/ONSdata_D7G8.json\", \"format\": {\"type\": \"json\", \"property\": \"months\"}}, \"title\": {\"text\": \"CPI ANNUAL RATE 01 : FOOD AND NON-ALCOHOLIC BEVERAGES 2015=100\", \"fontSize\": 10, \"subtitle\": \"(\\u00a3million, Source: ONS)\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 290, \"mark\": {\"type\": \"line\", \"color\": \"#002199\"}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"axis\": {\"grid\": false}, \"title\": \"Date\"}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"axis\": {\"grid\": false}, \"title\": \"Inflation\"}}, \"config\": {}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Is there a correlation between the size of a countries economy and it's growth rate?\", \"subtitle\": \"Regression of country GDP size vs GDP growth rate. Source: TheWorldBank\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/SamJones033/SamJones033.github.io/main/diffcountries.csv\", \"format\": {\"type\": \"csv\"}}, \"height\": 355, \"width\": 390, \"background\": \"WHITE\", \"layer\": [{\"params\": [{\"name\": \"cont\", \"select\": {\"type\": \"point\", \"fields\": [\"continent\"]}, \"bind\": \"legend\"}], \"mark\": {\"type\": \"point\"}, \"encoding\": {\"x\": {\"field\": \"total\", \"type\": \"quantitative\", \"title\": \"Total GDP in US$\", \"axis\": {\"grid\": false}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Inflation rate (%)\", \"axis\": {\"grid\": false}}, \"color\": {\"field\": \"continent\", \"scale\": {\"scheme\": \"dark2\"}, \"type\": \"nominal\", \"title\": \"Continent\"}, \"opacity\": {\"condition\": {\"param\": \"cont\", \"value\": 1}, \"value\": 0.2}, \"tooltip\": [{\"field\": \"country\", \"type\": \"nominal\", \"title\": \"Country\"}, {\"field\": \"total\", \"type\": \"quantitative\", \"title\": \"Total GDP\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"The change in GDP\"}]}}, {\"mark\": {\"type\": \"line\", \"color\": \"black\"}, \"transform\": [{\"regression\": \"value\", \"on\": \"total\"}], \"encoding\": {\"x\": {\"field\": \"total\", \"type\": \"quantitative\"}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\"}}}, {\"transform\": [{\"regression\": \"value\", \"on\": \"total\", \"params\": true}, {\"calculate\": \"'R\\u00b2: '+format(datum.rSquared, '.2f')\", \"as\": \"R2\"}], \"mark\": {\"type\": \"text\", \"color\": \"firebrick\", \"x\": \"width\", \"align\": \"right\", \"y\": -10}, \"encoding\": {\"text\": {\"type\": \"nominal\", \"field\": \"R2\"}}}], \"config\": {}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"height\": 410, \"width\": 630, \"title\": \"Does a happy world mean a recession free world?\", \"font\": \"'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif\", \"data\": {\"url\": \"https://raw.githubusercontent.com/SamJones033/SamJones033.github.io/main/happiness.csv\"}, \"mark\": \"circle\", \"encoding\": {\"color\": {\"field\": \"Happy\", \"type\": \"quantitative\", \"scale\": {\"scheme\": \"redyellowgreen\"}, \"sort\": \"ascending\", \"title\": \"Happiness Score\"}, \"x\": {\"field\": \"GDP\", \"type\": \"quantitative\", \"title\": \"GDP per Capita\"}, \"size\": {\"field\": \"GDP\", \"type\": \"nominal\", \"legend\": null}, \"tooltip\": [{\"field\": \"Country\", \"title\": \"Country\"}, {\"field\": \"GDP\", \"title\": \"GDP per Capita\"}, {\"field\": \"Number\", \"title\": \"GDP per Capita\"}, {\"field\": \"Population\"}], \"y\": {\"field\": \"Happy\", \"type\": \"quantitative\", \"scale\": {\"domain\": [6, 8]}, \"title\": \"Happiness index score\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Productivity UK\", \"title\": {\"text\": \"UK productivity, 1971-2021\", \"subtitle\": \"Labour productivity. Output per hour worked, 2018==100. Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ukMacro/GI4.DataHub.GrowthInnovationOutputperHour.csv\"}, \"height\": 300, \"width\": 1650, \"mark\": {\"type\": \"line\", \"point\": false, \"interpolate\": \"monotone\", \"color\": \"blueviolet\"}, \"encoding\": {\"x\": {\"field\": \"Date\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 20, \"ticks\": false}}, \"y\": {\"field\": \"Value\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Carbon Monoxide Emissions Across the UK\", \"subtitle\": \"The Weekly Average Emmisions of Carbon Monoxide\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://api.v2.emissions-api.org/api/v2/carbonmonoxide/statistics.json?country=GB&interval=week&end=2022-11-01&offset=0\"}, \"mark\": {\"type\": \"line\", \"point\": false, \"clip\": true, \"color\": \"darkgoldenrod\"}, \"height\": 300, \"width\": 320, \"encoding\": {\"x\": {\"field\": \"time.interval_start\", \"title\": null, \"axis\": {\"grid\": false}, \"type\": \"temporal\"}, \"y\": {\"field\": \"value.average\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false}, \"scale\": {\"domain\": [0.01, 0.05]}}}, \"config\": {}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/SamJones033/SamJones033.github.io/main/ONSdata_D7G9.json\", \"format\": {\"type\": \"json\", \"property\": \"months\"}}, \"title\": {\"text\": \"CPI ANNUAL RATE 02 : ALCOHOLIC BEVERAGES AND TOBACCO 2015=100\", \"fontSize\": 10, \"subtitle\": \"(\\u00a3million, Source: ONS)\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"height\": 300, \"width\": 320, \"mark\": {\"type\": \"line\", \"color\": \"#002199\"}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"axis\": {\"grid\": false}, \"title\": \"Date\"}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"axis\": {\"grid\": false}, \"title\": \"Inflation\"}}, \"config\": {}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Unemployment rate (16+) - By place of birth, Source:ONS\", \"subtitle\": \"By place of birth, United Kingdom seasonally adjusted\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 400, \"height\": 300, \"params\": [{\"name\": \"minYear\", \"value\": 1997, \"bind\": {\"input\": \"range\", \"min\": 1997, \"max\": 2022, \"step\": 1, \"name\": \"Start Year\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 1997, \"max\": 2022, \"step\": 1, \"name\": \"End Year\"}}], \"encoding\": {\"x\": {\"field\": \"dateCLEAN\", \"type\": \"temporal\", \"title\": null}, \"color\": {\"field\": \"name\", \"type\": \"ordinal\", \"title\": null, \"scale\": {\"range\": [\"#000080\", \"#00BFFF\", \"#0276FD\"]}, \"legend\": {\"orient\": \"top-right\"}}}, \"layer\": [{\"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/DT2W/dataset/lms/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"transform\": [{\"calculate\": \"substring(datum.quarter,1)*3-1\", \"as\": \"quarter_n\"}, {\"calculate\": \"join([datum.year, datum.quarter_n],['-'])\", \"as\": \"date2\"}, {\"calculate\": \"timeParse(datum.date2, '%Y-%m')\", \"as\": \"dateCLEAN\"}, {\"calculate\": \"replace(datum.month, '', 'UK')\", \"as\": \"name\"}, {\"filter\": \"datum.year>=minYear\"}, {\"filter\": \"datum.year<=maxYear\"}], \"mark\": {\"type\": \"line\", \"strokeWidth\": 2, \"opacity\": 1}, \"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"dateCLEAN\", \"type\": \"temporal\", \"title\": \"Year\", \"timeUnit\": \"year\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"UK born adults (%)\"}]}}, {\"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/DTJG/dataset/lms/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"transform\": [{\"calculate\": \"substring(datum.quarter,1)*3-1\", \"as\": \"quarter_n\"}, {\"calculate\": \"join([datum.year, datum.quarter_n],['-'])\", \"as\": \"date2\"}, {\"calculate\": \"timeParse(datum.date2, '%Y-%m')\", \"as\": \"dateCLEAN\"}, {\"calculate\": \"replace(datum.month, '', 'EU')\", \"as\": \"name\"}, {\"filter\": \"datum.year>=minYear\"}, {\"filter\": \"datum.year<=maxYear\"}], \"mark\": {\"type\": \"line\", \"strokeWidth\": 2, \"opacity\": 1}, \"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"dateCLEAN\", \"type\": \"temporal\", \"title\": \"Year\", \"timeUnit\": \"year\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"EU born adults (%)\"}]}}, {\"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/DTKD/dataset/lms/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"transform\": [{\"calculate\": \"substring(datum.quarter,1)*3-1\", \"as\": \"quarter_n\"}, {\"calculate\": \"join([datum.year, datum.quarter_n],['-'])\", \"as\": \"date2\"}, {\"calculate\": \"timeParse(datum.date2, '%Y-%m')\", \"as\": \"dateCLEAN\"}, {\"calculate\": \"replace(datum.month, '', 'Non-EU')\", \"as\": \"name\"}, {\"filter\": \"datum.year>=minYear\"}, {\"filter\": \"datum.year<=maxYear\"}], \"mark\": {\"type\": \"line\", \"strokeWidth\": 2, \"opacity\": 1}, \"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"dateCLEAN\", \"type\": \"temporal\", \"title\": \"Year\", \"timeUnit\": \"year\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Non-EU born adults (%)\"}]}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"GDP per capita & Immigration\", \"subtitle\": \"GDP per capita (USD) regressed on foregin born population (%) for OECD countries, 2019. source:OECD\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/sadieward/sadieward.github.io/main/OECDimm_gdp_conts.csv\"}, \"width\": 400, \"height\": 300, \"layer\": [{\"mark\": {\"type\": \"point\", \"filled\": true, \"color\": \"#162a2c\"}, \"encoding\": {\"x\": {\"field\": \"foreign population %\", \"type\": \"quantitative\", \"title\": \"Foreign born population (%)\"}, \"y\": {\"field\": \"GDP 000s\", \"type\": \"quantitative\", \"title\": \"GDP per capita (000s)\"}, \"tooltip\": [{\"field\": \"Country \", \"type\": \"nominal\", \"title\": \"Country\"}], \"color\": {\"field\": \"Continent\", \"type\": \"nominal\"}}}, {\"mark\": {\"type\": \"line\", \"color\": \"firebrick\"}, \"transform\": [{\"regression\": \"GDP 000s\", \"on\": \"foreign population %\", \"extent\": [0, 40]}], \"encoding\": {\"x\": {\"field\": \"foreign population %\", \"type\": \"quantitative\"}, \"y\": {\"field\": \"GDP 000s\", \"type\": \"quantitative\"}}}, {\"transform\": [{\"regression\": \"GDP 000s\", \"on\": \"foreign population %\", \"params\": true}, {\"calculate\": \"'R\\u00b2: '+format(datum.rSquared, '.2f')\", \"as\": \"R2\"}], \"mark\": {\"type\": \"text\", \"color\": \"#8B2323\", \"x\": \"width\", \"align\": \"right\", \"y\": -5}, \"encoding\": {\"text\": {\"type\": \"nominal\", \"field\": \"R2\"}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"A simple bar chart with embedded data.\", \"title\": {\"text\": \"Shortest Serving UK Prime Ministers \", \"subtitle\": \"Measured in days\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"height\": 300, \"width\": 300, \"data\": {\"values\": [{\"Prime Minister\": \"Sir Alec Douglas-Home\", \"Tenure length\": \"363\\u00a0days\", \"Length\": 363}, {\"Prime Minister\": \"The Earl of Bute\", \"Tenure length\": \"317\\u00a0days\", \"Length\": 317}, {\"Prime Minister\": \"The Earl of Shelburne\", \"Tenure length\": \"266\\u00a0days\", \"Length\": 266}, {\"Prime Minister\": \"The Duke of Devonshire\", \"Tenure length\": \"225\\u00a0days\", \"Length\": 225}, {\"Prime Minister\": \"Bonar Law\", \"Tenure length\": \"211\\u00a0days\", \"Length\": 211}, {\"Prime Minister\": \"The Viscount Goderich\", \"Tenure length\": \"144\\u00a0days\", \"Length\": 144}, {\"Prime Minister\": \"George Canning\", \"Tenure length\": \"119\\u00a0days\", \"Length\": 119}, {\"Prime Minister\": \"Liz Truss\", \"Tenure length\": \"48\\u00a0days\", \"Length\": 48}]}, \"mark\": {\"type\": \"bar\", \"color\": \"#78969d\"}, \"encoding\": {\"y\": {\"field\": \"Prime Minister\", \"type\": \"nominal\", \"sort\": \"-x\", \"axis\": {\"labelAngle\": 0, \"title\": null}}, \"x\": {\"field\": \"Length\", \"type\": \"quantitative\", \"title\": \"Length\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"A population pyramid for the US in 2000.\", \"data\": {\"url\": \"https://raw.githubusercontent.com/sadieward/sadieward.github.io/main/pop-pyramid3.csv\"}, \"title\": {\"text\": \"Age Demographics \", \"subtitle\": \"Of the general population and immigrants on arrival to the UK in 2021, percent, source ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\", \"align\": \"center\", \"color\": \"black\"}, \"spacing\": 0, \"hconcat\": [{\"transform\": [{\"filter\": {\"field\": \"Category\", \"equal\": \"%current_pop\"}}], \"title\": \"Current Population\", \"mark\": \"bar\", \"encoding\": {\"y\": {\"field\": \"Ages\", \"type\": \"ordinal\", \"axis\": null, \"sort\": \"-\"}, \"x\": {\"aggregate\": \"sum\", \"field\": \"Value\", \"title\": \"% of total population\", \"axis\": {\"format\": \"s\"}, \"sort\": \"descending\"}, \"color\": {\"field\": \"Category\", \"scale\": {\"range\": [\"#147FAA\", \"#1B404F\"]}, \"legend\": null}}}, {\"width\": 10, \"view\": {\"stroke\": null}, \"mark\": {\"type\": \"text\", \"align\": \"center\"}, \"encoding\": {\"y\": {\"field\": \"Ages\", \"type\": \"ordinal\", \"axis\": null, \"sort\": \"descending\"}}}, {\"transform\": [{\"filter\": {\"field\": \"Category\", \"equal\": \"%_imm\"}}], \"title\": \"Immigrants\", \"mark\": \"bar\", \"encoding\": {\"y\": {\"field\": \"Ages\", \"title\": null, \"sort\": \"-\"}, \"x\": {\"aggregate\": \"sum\", \"field\": \"Value\", \"title\": \"% of total immigrants\", \"axis\": {\"format\": \"s\"}}, \"color\": {\"field\": \"Category\", \"legend\": null}}}], \"config\": {\"view\": {\"stroke\": null}, \"axis\": {\"grid\": false}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Aged 35-49\", \"subtitle\": \" Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\", \"subtitleColor\": \"black\"}, \"config\": {\"background\": \"whitesmoke\", \"view\": {\"stroke\": \"transparent\"}}, \"width\": 150, \"height\": 150, \"data\": {\"url\": \"https://raw.githubusercontent.com/sadieward/sadieward.github.io/main/data_ONS-YCGV.json\", \"format\": {\"type\": \"json\", \"property\": \"months\"}}, \"mark\": {\"type\": \"line\", \"point\": false, \"color\": \"#314686\"}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"domainColor\": \"dimgrey\", \"labelColor\": \"black\", \"tickColor\": \"pink\", \"gridColor\": \"dimgrey\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Aged 25-34\", \"subtitle\": \" Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\", \"subtitleColor\": \"black\"}, \"config\": {\"background\": \"whitesmoke\", \"view\": {\"stroke\": \"transparent\"}}, \"width\": 150, \"height\": 150, \"data\": {\"url\": \"https://raw.githubusercontent.com/sadieward/sadieward.github.io/main/data_ONS-YCGP.json\", \"format\": {\"type\": \"json\", \"property\": \"months\"}}, \"mark\": {\"type\": \"line\", \"point\": false, \"color\": \"#314686\"}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"domainColor\": \"dimgrey\", \"labelColor\": \"black\", \"tickColor\": \"pink\", \"gridColor\": \"dimgrey\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Aged 18-24\", \"subtitle\": \" Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\", \"subtitleColor\": \"black\"}, \"config\": {\"background\": \"whitesmoke\", \"view\": {\"stroke\": \"transparent\"}}, \"width\": 150, \"height\": 150, \"data\": {\"url\": \"https://raw.githubusercontent.com/sadieward/sadieward.github.io/main/data_ONS-YBVQ.json\", \"format\": {\"type\": \"json\", \"property\": \"months\"}}, \"mark\": {\"type\": \"line\", \"point\": false, \"color\": \"#314686\"}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"domainColor\": \"dimgrey\", \"labelColor\": \"black\", \"tickColor\": \"pink\", \"gridColor\": \"dimgrey\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Aged 16-17\", \"subtitle\": \" Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\", \"subtitleColor\": \"black\"}, \"config\": {\"background\": \"whitesmoke\", \"view\": {\"stroke\": \"transparent\"}}, \"width\": 150, \"height\": 150, \"data\": {\"url\": \"https://raw.githubusercontent.com/sadieward/sadieward.github.io/main/data_ONS-YBVK.json\", \"format\": {\"type\": \"json\", \"property\": \"months\"}}, \"mark\": {\"type\": \"line\", \"point\": false, \"color\": \"#314686\"}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"domainColor\": \"dimgrey\", \"labelColor\": \"black\", \"tickColor\": \"pink\", \"gridColor\": \"dimgrey\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Employment rate: Aged 65+\", \"subtitle\": \" Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\", \"subtitleColor\": \"black\"}, \"config\": {\"background\": \"whitesmoke\", \"view\": {\"stroke\": \"transparent\"}}, \"width\": 150, \"height\": 150, \"data\": {\"url\": \"https://raw.githubusercontent.com/sadieward/sadieward.github.io/main/data_ONS-LFK6.json\", \"format\": {\"type\": \"json\", \"property\": \"months\"}}, \"mark\": {\"type\": \"line\", \"point\": false, \"color\": \"#314686\"}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"domainColor\": \"dimgrey\", \"labelColor\": \"black\", \"tickColor\": \"pink\", \"gridColor\": \"dimgrey\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Women aged 16-64\", \"subtitle\": \" Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\", \"subtitleColor\": \"black\"}, \"config\": {\"background\": \"whitesmoke\", \"view\": {\"stroke\": \"transparent\"}}, \"width\": 150, \"height\": 150, \"data\": {\"url\": \"https://raw.githubusercontent.com/sadieward/sadieward.github.io/main/data_ONS-LF2R.json\", \"format\": {\"type\": \"json\", \"property\": \"months\"}}, \"mark\": {\"type\": \"line\", \"point\": false, \"color\": \"#314686\"}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"domainColor\": \"dimgrey\", \"labelColor\": \"black\", \"tickColor\": \"pink\", \"gridColor\": \"dimgrey\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Aged 16-64\", \"subtitle\": \" Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\", \"subtitleColor\": \"black\"}, \"config\": {\"background\": \"whitesmoke\", \"view\": {\"stroke\": \"transparent\"}}, \"width\": 150, \"height\": 150, \"data\": {\"url\": \"https://raw.githubusercontent.com/sadieward/sadieward.github.io/main/data_ONS-LF2Q.json\", \"format\": {\"type\": \"json\", \"property\": \"months\"}}, \"mark\": {\"type\": \"line\", \"point\": false, \"color\": \"#314686\"}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"domainColor\": \"dimgrey\", \"labelColor\": \"black\", \"tickColor\": \"pink\", \"gridColor\": \"dimgrey\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Aged 50-64\", \"subtitle\": \" Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\", \"subtitleColor\": \"black\"}, \"config\": {\"background\": \"whitesmoke\", \"view\": {\"stroke\": \"transparent\"}}, \"width\": 150, \"height\": 150, \"data\": {\"url\": \"https://raw.githubusercontent.com/sadieward/sadieward.github.io/main/data_ONS-LF2E.json\", \"format\": {\"type\": \"json\", \"property\": \"months\"}}, \"mark\": {\"type\": \"line\", \"point\": false, \"color\": \"#314686\"}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"domainColor\": \"dimgrey\", \"labelColor\": \"black\", \"tickColor\": \"pink\", \"gridColor\": \"dimgrey\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Men aged 16-64\", \"subtitle\": \" Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\", \"subtitleColor\": \"black\"}, \"config\": {\"background\": \"whitesmoke\", \"view\": {\"stroke\": \"transparent\"}}, \"width\": 150, \"height\": 150, \"data\": {\"url\": \"https://raw.githubusercontent.com/sadieward/sadieward.github.io/main/data_ONS-YBTJ.json\", \"format\": {\"type\": \"json\", \"property\": \"months\"}}, \"mark\": {\"type\": \"line\", \"point\": false, \"color\": \"#314686\"}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"domainColor\": \"dimgrey\", \"labelColor\": \"black\", \"tickColor\": \"pink\", \"gridColor\": \"dimgrey\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Net Migration\", \"title\": {\"text\": \"Long-term Migration in the UK\", \"subtitle\": \"In thousands, source ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"data\": {\"values\": [{\"Year\": \"1991\", \"Category\": \"Immigration\", \"value\": 329}, {\"Year\": \"1991\", \"Category\": \"Emigration\", \"value\": 285}, {\"Year\": \"1991\", \"Category\": \"Net migration\", \"value\": 44}, {\"Year\": \"1992\", \"Category\": \"Immigration\", \"value\": 268}, {\"Year\": \"1992\", \"Category\": \"Emigration\", \"value\": 281}, {\"Year\": \"1992\", \"Category\": \"Net migration\", \"value\": -13}, {\"Year\": \"1993\", \"Category\": \"Immigration\", \"value\": 266}, {\"Year\": \"1993\", \"Category\": \"Emigration\", \"value\": 266}, {\"Year\": \"1993\", \"Category\": \"Net migration\", \"value\": -1}, {\"Year\": \"1994\", \"Category\": \"Immigration\", \"value\": 315}, {\"Year\": \"1994\", \"Category\": \"Emigration\", \"value\": 238}, {\"Year\": \"1994\", \"Category\": \"Net migration\", \"value\": 77}, {\"Year\": \"1995\", \"Category\": \"Immigration\", \"value\": 312}, {\"Year\": \"1995\", \"Category\": \"Emigration\", \"value\": 236}, {\"Year\": \"1995\", \"Category\": \"Net migration\", \"value\": 76}, {\"Year\": \"1996\", \"Category\": \"Immigration\", \"value\": 318}, {\"Year\": \"1996\", \"Category\": \"Emigration\", \"value\": 264}, {\"Year\": \"1996\", \"Category\": \"Net migration\", \"value\": 55}, {\"Year\": \"1997\", \"Category\": \"Immigration\", \"value\": 327}, {\"Year\": \"1997\", \"Category\": \"Emigration\", \"value\": 279}, {\"Year\": \"1997\", \"Category\": \"Net migration\", \"value\": 48}, {\"Year\": \"1998\", \"Category\": \"Immigration\", \"value\": 391}, {\"Year\": \"1998\", \"Category\": \"Emigration\", \"value\": 251}, {\"Year\": \"1998\", \"Category\": \"Net migration\", \"value\": 140}, {\"Year\": \"1999\", \"Category\": \"Immigration\", \"value\": 454}, {\"Year\": \"1999\", \"Category\": \"Emigration\", \"value\": 291}, {\"Year\": \"1999\", \"Category\": \"Net migration\", \"value\": 163}, {\"Year\": \"2000\", \"Category\": \"Immigration\", \"value\": 479}, {\"Year\": \"2000\", \"Category\": \"Emigration\", \"value\": 321}, {\"Year\": \"2000\", \"Category\": \"Net migration\", \"value\": 158}, {\"Year\": \"2001\", \"Category\": \"Immigration\", \"value\": 481}, {\"Year\": \"2001\", \"Category\": \"Emigration\", \"value\": 309}, {\"Year\": \"2001\", \"Category\": \"Net migration\", \"value\": 179}, {\"Year\": \"2002\", \"Category\": \"Immigration\", \"value\": 516}, {\"Year\": \"2002\", \"Category\": \"Emigration\", \"value\": 363}, {\"Year\": \"2002\", \"Category\": \"Net migration\", \"value\": 172}, {\"Year\": \"2003\", \"Category\": \"Immigration\", \"value\": 511}, {\"Year\": \"2003\", \"Category\": \"Emigration\", \"value\": 363}, {\"Year\": \"2003\", \"Category\": \"Net migration\", \"value\": 185}, {\"Year\": \"2004\", \"Category\": \"Immigration\", \"value\": 589}, {\"Year\": \"2004\", \"Category\": \"Emigration\", \"value\": 344}, {\"Year\": \"2004\", \"Category\": \"Net migration\", \"value\": 268}, {\"Year\": \"2005\", \"Category\": \"Immigration\", \"value\": 567}, {\"Year\": \"2005\", \"Category\": \"Emigration\", \"value\": 361}, {\"Year\": \"2005\", \"Category\": \"Net migration\", \"value\": 267}, {\"Year\": \"2006\", \"Category\": \"Immigration\", \"value\": 596}, {\"Year\": \"2006\", \"Category\": \"Emigration\", \"value\": 398}, {\"Year\": \"2006\", \"Category\": \"Net migration\", \"value\": 265}, {\"Year\": \"2007\", \"Category\": \"Immigration\", \"value\": 574}, {\"Year\": \"2007\", \"Category\": \"Emigration\", \"value\": 341}, {\"Year\": \"2007\", \"Category\": \"Net migration\", \"value\": 273}, {\"Year\": \"2008\", \"Category\": \"Immigration\", \"value\": 590}, {\"Year\": \"2008\", \"Category\": \"Emigration\", \"value\": 427}, {\"Year\": \"2008\", \"Category\": \"Net migration\", \"value\": 229}, {\"Year\": \"2009\", \"Category\": \"Immigration\", \"value\": 619}, {\"Year\": \"2009\", \"Category\": \"Emigration\", \"value\": 397}, {\"Year\": \"2009\", \"Category\": \"Net migration\", \"value\": 205}, {\"Year\": \"2009\", \"Category\": \"Immigration\", \"value\": 591}, {\"Year\": \"2009\", \"Category\": \"Emigration\", \"value\": 368}, {\"Year\": \"2009\", \"Category\": \"Net migration\", \"value\": 229}, {\"Year\": \"2010\", \"Category\": \"Immigration\", \"value\": 604}, {\"Year\": \"2010\", \"Category\": \"Emigration\", \"value\": 339}, {\"Year\": \"2010\", \"Category\": \"Net migration\", \"value\": 256}, {\"Year\": \"2011\", \"Category\": \"Immigration\", \"value\": 599}, {\"Year\": \"2011\", \"Category\": \"Emigration\", \"value\": 351}, {\"Year\": \"2011\", \"Category\": \"Net migration\", \"value\": 249}, {\"Year\": \"2012\", \"Category\": \"Immigration\", \"value\": 524}, {\"Year\": \"2012\", \"Category\": \"Emigration\", \"value\": 363}, {\"Year\": \"2012\", \"Category\": \"Net migration\", \"value\": 161}, {\"Year\": \"2013\", \"Category\": \"Immigration\", \"value\": 557}, {\"Year\": \"2013\", \"Category\": \"Emigration\", \"value\": 350}, {\"Year\": \"2013\", \"Category\": \"Net migration\", \"value\": 208}, {\"Year\": \"2014\", \"Category\": \"Immigration\", \"value\": 667}, {\"Year\": \"2014\", \"Category\": \"Emigration\", \"value\": 358}, {\"Year\": \"2014\", \"Category\": \"Net migration\", \"value\": 309}, {\"Year\": \"2015\", \"Category\": \"Immigration\", \"value\": 664}, {\"Year\": \"2015\", \"Category\": \"Emigration\", \"value\": 334}, {\"Year\": \"2015\", \"Category\": \"Net migration\", \"value\": 329}, {\"Year\": \"2016\", \"Category\": \"Immigration\", \"value\": 622}, {\"Year\": \"2016\", \"Category\": \"Emigration\", \"value\": 369}, {\"Year\": \"2016\", \"Category\": \"Net migration\", \"value\": 252}, {\"Year\": \"2017\", \"Category\": \"Immigration\", \"value\": 644}, {\"Year\": \"2017\", \"Category\": \"Emigration\", \"value\": 395}, {\"Year\": \"2017\", \"Category\": \"Net migration\", \"value\": 249}, {\"Year\": \"2018\", \"Category\": \"Immigration\", \"value\": 604}, {\"Year\": \"2018\", \"Category\": \"Emigration\", \"value\": 372}, {\"Year\": \"2018\", \"Category\": \"Net migration\", \"value\": 232}, {\"Year\": \"2019\", \"Category\": \"Immigration\", \"value\": 681}, {\"Year\": \"2019\", \"Category\": \"Emigration\", \"value\": 409}, {\"Year\": \"2019\", \"Category\": \"Net migration\", \"value\": 271}, {\"Year\": \"2020\", \"Category\": \"Immigration\", \"value\": 563}, {\"Year\": \"2020\", \"Category\": \"Emigration\", \"value\": 530}, {\"Year\": \"2020\", \"Category\": \"Net migration\", \"value\": 32}, {\"Year\": \"2021\", \"Category\": \"Immigration\", \"value\": 895}, {\"Year\": \"2021\", \"Category\": \"Emigration\", \"value\": 498}, {\"Year\": \"2021\", \"Category\": \"Net migration\", \"value\": 397}, {\"Year\": \"2022\", \"Category\": \"Immigration\", \"value\": 1064}, {\"Year\": \"2022\", \"Category\": \"Emigration\", \"value\": 560}, {\"Year\": \"2022\", \"Category\": \"Net migration\", \"value\": 504}]}, \"mark\": {\"type\": \"line\"}, \"encoding\": {\"x\": {\"field\": \"Year\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"ticks\": false, \"labelAngle\": 45}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": true}}, \"color\": {\"field\": \"Category\", \"type\": \"nominal\", \"title\": \"Country\", \"scale\": {\"range\": [\"#033542\", \"#78969d\", \"#AFE1AF\"]}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/sadieward/sadieward.github.io/main/OECDimm_prod.csv\"}, \"title\": {\"text\": \"Productivity & Immigration\", \"subtitle\": \"GDP per hour worked (USD, indexed 2015=100) regressed on foregin born population (%), 2019, source:OECD\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 400, \"height\": 300, \"layer\": [{\"mark\": {\"type\": \"point\", \"filled\": true, \"color\": \"#162a2c\"}, \"encoding\": {\"x\": {\"field\": \"foreign population %\", \"type\": \"quantitative\", \"title\": \"Foreign Population (%)\"}, \"y\": {\"field\": \"Value\", \"type\": \"quantitative\", \"title\": \"Productivity\", \"scale\": {\"domainMin\": 90}}, \"tooltip\": [{\"field\": \"LOCATION\", \"type\": \"nominal\", \"title\": \"Immigrants\"}]}}, {\"mark\": {\"type\": \"line\", \"color\": \"firebrick\"}, \"transform\": [{\"regression\": \"Value\", \"on\": \"foreign population %\", \"extent\": [0, 20]}], \"encoding\": {\"x\": {\"field\": \"foreign population %\", \"type\": \"quantitative\"}, \"y\": {\"field\": \"Value\", \"type\": \"quantitative\"}}}, {\"transform\": [{\"regression\": \"Value\", \"on\": \"foreign population %\", \"params\": true}, {\"calculate\": \"'R\\u00b2: '+format(datum.rSquared, '.2f')\", \"as\": \"R2\"}], \"mark\": {\"type\": \"text\", \"color\": \"firebrick\", \"x\": \"width\", \"align\": \"right\", \"y\": -5}, \"encoding\": {\"text\": {\"type\": \"nominal\", \"field\": \"R2\"}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"GDP per capita & Immigration\", \"subtitle\": \"GDP per capita regressed on foregin born population (%) for OECD countries, 2019. source:OECD\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/sadieward/sadieward.github.io/main/oecdimm_gdp.csv\"}, \"width\": 400, \"height\": 300, \"layer\": [{\"mark\": {\"type\": \"point\", \"filled\": true, \"color\": \"#162a2c\"}, \"encoding\": {\"x\": {\"field\": \"foreign population %\", \"type\": \"quantitative\", \"title\": \"Foreign born population (%)\"}, \"y\": {\"field\": \"GDP 000s\", \"type\": \"quantitative\", \"title\": \"GDP per capita (000s)\"}, \"tooltip\": [{\"field\": \"Country\", \"type\": \"nominal\", \"title\": \"Country\"}]}}, {\"mark\": {\"type\": \"line\", \"color\": \"firebrick\"}, \"transform\": [{\"regression\": \"GDP 000s\", \"on\": \"foreign population %\", \"extent\": [0, 40]}], \"encoding\": {\"x\": {\"field\": \"foreign population %\", \"type\": \"quantitative\"}, \"y\": {\"field\": \"GDP 000s\", \"type\": \"quantitative\"}}}, {\"transform\": [{\"regression\": \"GDP 000s\", \"on\": \"foreign population %\", \"params\": true}, {\"calculate\": \"'R\\u00b2: '+format(datum.rSquared, '.2f')\", \"as\": \"R2\"}], \"mark\": {\"type\": \"text\", \"color\": \"#8B2323\", \"x\": \"width\", \"align\": \"right\", \"y\": -5}, \"encoding\": {\"text\": {\"type\": \"nominal\", \"field\": \"R2\"}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"IMF Lending Outstaning (% of World GDP) \", \"subtitle\": \"credit outstanding to all members as a percentage of World GDP, source IMF\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/sadieward/sadieward.github.io/main/data_IMF_credit%25ofGDP.csv\"}, \"height\": 300, \"width\": 300, \"mark\": {\"type\": \"bar\", \"color\": \"#13667a\"}, \"encoding\": {\"x\": {\"field\": \"Year\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"ticks\": false, \"labelAngle\": 35}}, \"y\": {\"field\": \"Totals%ofGDP\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"IMF Lending Outstaning \", \"subtitle\": \"credit outstanding to all members, SDRs (billions), source IMF\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/sadieward/sadieward.github.io/main/data_IMF_creditCLEAN.csv\"}, \"height\": 300, \"width\": 300, \"mark\": {\"type\": \"bar\", \"color\": \"#13667a\"}, \"encoding\": {\"x\": {\"field\": \"Year\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"ticks\": false, \"labelAngle\": 45}}, \"y\": {\"field\": \"Totals_billions\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"A bubble plot - Gross GDP - foreign popuation.\", \"width\": 400, \"height\": 300, \"title\": {\"text\": \"GDP & Immigration\", \"subtitle\": \"GDP (USD, constant prices), Source:OECD, World Bank\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/sadieward/sadieward.github.io/main/grossgdp_imm.csv\"}, \"mark\": \"circle\", \"encoding\": {\"y\": {\"field\": \"GDP(bns)\", \"type\": \"quantitative\", \"axis\": {\"grid\": false}}, \"x\": {\"field\": \"foreign born (mns)\", \"type\": \"quantitative\", \"axis\": {\"grid\": false, \"title\": \"Foreign born population (mns)\"}}, \"tooltip\": [{\"field\": \"LOCATION\", \"title\": \"Country\"}], \"size\": {\"field\": \"population\", \"type\": \"quantitative\", \"title\": \"Total Population\"}, \"color\": {\"value\": \"#6DE18E\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Gender pay gap\", \"title\": {\"text\": \"Gender Pay Gap\", \"subtitle\": \"Percentage difference in median earnings of men and women (full-time employees), source OECD\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"data\": {\"values\": [{\"LOCATION\": \"GBR\", \"TIME\": 1970, \"Value\": 47.57803918, \"Year\": \"1970\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1971, \"Value\": 45.52742185, \"Year\": \"1971\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1972, \"Value\": 45.67779473, \"Year\": \"1972\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1973, \"Value\": 46.37872641, \"Year\": \"1973\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1974, \"Value\": 44.42223433, \"Year\": \"1974\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1975, \"Value\": 39.85541472, \"Year\": \"1975\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1976, \"Value\": 36.55030194, \"Year\": \"1976\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1977, \"Value\": 35.78836762, \"Year\": \"1977\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1978, \"Value\": 37.47486876, \"Year\": \"1978\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1979, \"Value\": 38.29523952, \"Year\": \"1979\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1980, \"Value\": 36.68858597, \"Year\": \"1980\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1981, \"Value\": 35.4268123, \"Year\": \"1981\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1982, \"Value\": 35.65961949, \"Year\": \"1982\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1983, \"Value\": 34.56728192, \"Year\": \"1983\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1984, \"Value\": 35.08152659, \"Year\": \"1984\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1985, \"Value\": 35.12011437, \"Year\": \"1985\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1986, \"Value\": 34.93850632, \"Year\": \"1986\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1987, \"Value\": 34.51295439, \"Year\": \"1987\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1988, \"Value\": 34.04572949, \"Year\": \"1988\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1989, \"Value\": 33.73065917, \"Year\": \"1989\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1990, \"Value\": 32.74495595, \"Year\": \"1990\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1991, \"Value\": 31.07547805, \"Year\": \"1991\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1992, \"Value\": 29.9466794, \"Year\": \"1992\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1993, \"Value\": 28.71901926, \"Year\": \"1993\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1994, \"Value\": 28.07971854, \"Year\": \"1994\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1995, \"Value\": 28.19283491, \"Year\": \"1995\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1996, \"Value\": 27.21841089, \"Year\": \"1996\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1997, \"Value\": 26.91907015, \"Year\": \"1997\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1998, \"Value\": 27.03529422, \"Year\": \"1998\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1999, \"Value\": 26.08972842, \"Year\": \"1999\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2000, \"Value\": 26.28031383, \"Year\": \"2000\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2001, \"Value\": 25.6396459, \"Year\": \"2001\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2002, \"Value\": 24.37909944, \"Year\": \"2002\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2003, \"Value\": 24.12446709, \"Year\": \"2003\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2004, \"Value\": 23.35874097, \"Year\": \"2004\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2005, \"Value\": 22.0639582, \"Year\": \"2005\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2006, \"Value\": 21.71808402, \"Year\": \"2006\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2007, \"Value\": 21.63478071, \"Year\": \"2007\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2008, \"Value\": 21.85786911, \"Year\": \"2008\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2009, \"Value\": 20.68629595, \"Year\": \"2009\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2010, \"Value\": 19.23143692, \"Year\": \"2010\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2011, \"Value\": 18.2460052, \"Year\": \"2011\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2012, \"Value\": 17.78388278, \"Year\": \"2012\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2013, \"Value\": 17.48201439, \"Year\": \"2013\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2014, \"Value\": 17.38274257, \"Year\": \"2014\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2015, \"Value\": 17.10155148, \"Year\": \"2015\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2016, \"Value\": 16.7965368, \"Year\": \"2016\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2017, \"Value\": 16.53410053, \"Year\": \"2017\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2018, \"Value\": 16.3104242, \"Year\": \"2018\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2019, \"Value\": 16.09980928, \"Year\": \"2019\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2020, \"Value\": 11.98380567, \"Year\": \"2020\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2021, \"Value\": 14.34929405, \"Year\": \"2021\"}, {\"LOCATION\": \"USA\", \"TIME\": 1973, \"Value\": 38.1104034, \"Year\": \"1973\"}, {\"LOCATION\": \"USA\", \"TIME\": 1974, \"Value\": 39.10068426, \"Year\": \"1974\"}, {\"LOCATION\": \"USA\", \"TIME\": 1975, \"Value\": 37.63003166, \"Year\": \"1975\"}, {\"LOCATION\": \"USA\", \"TIME\": 1976, \"Value\": 37.7559727, \"Year\": \"1976\"}, {\"LOCATION\": \"USA\", \"TIME\": 1977, \"Value\": 38.22485207, \"Year\": \"1977\"}, {\"LOCATION\": \"USA\", \"TIME\": 1978, \"Value\": 38.97247706, \"Year\": \"1978\"}, {\"LOCATION\": \"USA\", \"TIME\": 1979, \"Value\": 37.64195057, \"Year\": \"1979\"}, {\"LOCATION\": \"USA\", \"TIME\": 1980, \"Value\": 36.55215104, \"Year\": \"1980\"}, {\"LOCATION\": \"USA\", \"TIME\": 1981, \"Value\": 35.17400058, \"Year\": \"1981\"}, {\"LOCATION\": \"USA\", \"TIME\": 1982, \"Value\": 34.72409152, \"Year\": \"1982\"}, {\"LOCATION\": \"USA\", \"TIME\": 1983, \"Value\": 34.28645028, \"Year\": \"1983\"}, {\"LOCATION\": \"USA\", \"TIME\": 1984, \"Value\": 33.43217198, \"Year\": \"1984\"}, {\"LOCATION\": \"USA\", \"TIME\": 1985, \"Value\": 32.9782197, \"Year\": \"1985\"}, {\"LOCATION\": \"USA\", \"TIME\": 1986, \"Value\": 32.19021491, \"Year\": \"1986\"}, {\"LOCATION\": \"USA\", \"TIME\": 1987, \"Value\": 31.02222222, \"Year\": \"1987\"}, {\"LOCATION\": \"USA\", \"TIME\": 1988, \"Value\": 30.06917423, \"Year\": \"1988\"}, {\"LOCATION\": \"USA\", \"TIME\": 1989, \"Value\": 29.36357908, \"Year\": \"1989\"}, {\"LOCATION\": \"USA\", \"TIME\": 1990, \"Value\": 28.45544956, \"Year\": \"1990\"}, {\"LOCATION\": \"USA\", \"TIME\": 1991, \"Value\": 26.57109191, \"Year\": \"1991\"}, {\"LOCATION\": \"USA\", \"TIME\": 1992, \"Value\": 25.05773672, \"Year\": \"1992\"}, {\"LOCATION\": \"USA\", \"TIME\": 1993, \"Value\": 23.87640449, \"Year\": \"1993\"}, {\"LOCATION\": \"USA\", \"TIME\": 1994, \"Value\": 23.88451444, \"Year\": \"1994\"}, {\"LOCATION\": \"USA\", \"TIME\": 1995, \"Value\": 24.57998539, \"Year\": \"1995\"}, {\"LOCATION\": \"USA\", \"TIME\": 1996, \"Value\": 23.82394868, \"Year\": \"1996\"}, {\"LOCATION\": \"USA\", \"TIME\": 1997, \"Value\": 23.78649162, \"Year\": \"1997\"}, {\"LOCATION\": \"USA\", \"TIME\": 1998, \"Value\": 23.7458194, \"Year\": \"1998\"}, {\"LOCATION\": \"USA\", \"TIME\": 1999, \"Value\": 23.46278317, \"Year\": \"1999\"}, {\"LOCATION\": \"USA\", \"TIME\": 2000, \"Value\": 23.08892356, \"Year\": \"2000\"}, {\"LOCATION\": \"USA\", \"TIME\": 2001, \"Value\": 23.58208955, \"Year\": \"2001\"}, {\"LOCATION\": \"USA\", \"TIME\": 2002, \"Value\": 22.09131075, \"Year\": \"2002\"}, {\"LOCATION\": \"USA\", \"TIME\": 2003, \"Value\": 20.57553957, \"Year\": \"2003\"}, {\"LOCATION\": \"USA\", \"TIME\": 2004, \"Value\": 19.63534362, \"Year\": \"2004\"}, {\"LOCATION\": \"USA\", \"TIME\": 2005, \"Value\": 18.97506925, \"Year\": \"2005\"}, {\"LOCATION\": \"USA\", \"TIME\": 2006, \"Value\": 19.24629879, \"Year\": \"2006\"}, {\"LOCATION\": \"USA\", \"TIME\": 2007, \"Value\": 19.84334204, \"Year\": \"2007\"}, {\"LOCATION\": \"USA\", \"TIME\": 2008, \"Value\": 20.05012531, \"Year\": \"2008\"}, {\"LOCATION\": \"USA\", \"TIME\": 2009, \"Value\": 19.78021978, \"Year\": \"2009\"}, {\"LOCATION\": \"USA\", \"TIME\": 2010, \"Value\": 18.81067961, \"Year\": \"2010\"}, {\"LOCATION\": \"USA\", \"TIME\": 2011, \"Value\": 17.78846154, \"Year\": \"2011\"}, {\"LOCATION\": \"USA\", \"TIME\": 2012, \"Value\": 19.08665105, \"Year\": \"2012\"}, {\"LOCATION\": \"USA\", \"TIME\": 2013, \"Value\": 17.90697674, \"Year\": \"2013\"}, {\"LOCATION\": \"USA\", \"TIME\": 2014, \"Value\": 17.45120551, \"Year\": \"2014\"}, {\"LOCATION\": \"USA\", \"TIME\": 2015, \"Value\": 18.88268156, \"Year\": \"2015\"}, {\"LOCATION\": \"USA\", \"TIME\": 2016, \"Value\": 18.1420765, \"Year\": \"2016\"}, {\"LOCATION\": \"USA\", \"TIME\": 2017, \"Value\": 18.17215728, \"Year\": \"2017\"}, {\"LOCATION\": \"USA\", \"TIME\": 2018, \"Value\": 18.91058582, \"Year\": \"2018\"}, {\"LOCATION\": \"USA\", \"TIME\": 2019, \"Value\": 18.47070507, \"Year\": \"2019\"}, {\"LOCATION\": \"USA\", \"TIME\": 2020, \"Value\": 17.65249538, \"Year\": \"2020\"}, {\"LOCATION\": \"USA\", \"TIME\": 2021, \"Value\": 16.86417502, \"Year\": \"2021\"}]}, \"mark\": {\"type\": \"line\"}, \"encoding\": {\"x\": {\"field\": \"Year\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"ticks\": false, \"labelAngle\": 45}}, \"y\": {\"field\": \"Value\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false}}, \"color\": {\"field\": \"LOCATION\", \"type\": \"nominal\", \"title\": \"Country\", \"scale\": {\"range\": [\"#033542\", \"#78969d\"]}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Gender pay gap\", \"title\": {\"text\": \"Gender Pay Gap\", \"subtitle\": \"Percentage difference in median earnings of men and women (full-time employees), source OECD\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"data\": {\"values\": [{\"LOCATION\": \"GBR\", \"TIME\": 1970, \"Value\": 47.57803918, \"Year\": \"1970\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1971, \"Value\": 45.52742185, \"Year\": \"1971\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1972, \"Value\": 45.67779473, \"Year\": \"1972\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1973, \"Value\": 46.37872641, \"Year\": \"1973\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1974, \"Value\": 44.42223433, \"Year\": \"1974\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1975, \"Value\": 39.85541472, \"Year\": \"1975\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1976, \"Value\": 36.55030194, \"Year\": \"1976\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1977, \"Value\": 35.78836762, \"Year\": \"1977\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1978, \"Value\": 37.47486876, \"Year\": \"1978\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1979, \"Value\": 38.29523952, \"Year\": \"1979\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1980, \"Value\": 36.68858597, \"Year\": \"1980\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1981, \"Value\": 35.4268123, \"Year\": \"1981\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1982, \"Value\": 35.65961949, \"Year\": \"1982\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1983, \"Value\": 34.56728192, \"Year\": \"1983\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1984, \"Value\": 35.08152659, \"Year\": \"1984\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1985, \"Value\": 35.12011437, \"Year\": \"1985\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1986, \"Value\": 34.93850632, \"Year\": \"1986\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1987, \"Value\": 34.51295439, \"Year\": \"1987\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1988, \"Value\": 34.04572949, \"Year\": \"1988\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1989, \"Value\": 33.73065917, \"Year\": \"1989\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1990, \"Value\": 32.74495595, \"Year\": \"1990\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1991, \"Value\": 31.07547805, \"Year\": \"1991\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1992, \"Value\": 29.9466794, \"Year\": \"1992\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1993, \"Value\": 28.71901926, \"Year\": \"1993\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1994, \"Value\": 28.07971854, \"Year\": \"1994\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1995, \"Value\": 28.19283491, \"Year\": \"1995\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1996, \"Value\": 27.21841089, \"Year\": \"1996\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1997, \"Value\": 26.91907015, \"Year\": \"1997\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1998, \"Value\": 27.03529422, \"Year\": \"1998\"}, {\"LOCATION\": \"GBR\", \"TIME\": 1999, \"Value\": 26.08972842, \"Year\": \"1999\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2000, \"Value\": 26.28031383, \"Year\": \"2000\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2001, \"Value\": 25.6396459, \"Year\": \"2001\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2002, \"Value\": 24.37909944, \"Year\": \"2002\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2003, \"Value\": 24.12446709, \"Year\": \"2003\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2004, \"Value\": 23.35874097, \"Year\": \"2004\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2005, \"Value\": 22.0639582, \"Year\": \"2005\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2006, \"Value\": 21.71808402, \"Year\": \"2006\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2007, \"Value\": 21.63478071, \"Year\": \"2007\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2008, \"Value\": 21.85786911, \"Year\": \"2008\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2009, \"Value\": 20.68629595, \"Year\": \"2009\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2010, \"Value\": 19.23143692, \"Year\": \"2010\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2011, \"Value\": 18.2460052, \"Year\": \"2011\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2012, \"Value\": 17.78388278, \"Year\": \"2012\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2013, \"Value\": 17.48201439, \"Year\": \"2013\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2014, \"Value\": 17.38274257, \"Year\": \"2014\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2015, \"Value\": 17.10155148, \"Year\": \"2015\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2016, \"Value\": 16.7965368, \"Year\": \"2016\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2017, \"Value\": 16.53410053, \"Year\": \"2017\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2018, \"Value\": 16.3104242, \"Year\": \"2018\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2019, \"Value\": 16.09980928, \"Year\": \"2019\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2020, \"Value\": 11.98380567, \"Year\": \"2020\"}, {\"LOCATION\": \"GBR\", \"TIME\": 2021, \"Value\": 14.34929405, \"Year\": \"2021\"}, {\"LOCATION\": \"USA\", \"TIME\": 1973, \"Value\": 38.1104034, \"Year\": \"1973\"}, {\"LOCATION\": \"USA\", \"TIME\": 1974, \"Value\": 39.10068426, \"Year\": \"1974\"}, {\"LOCATION\": \"USA\", \"TIME\": 1975, \"Value\": 37.63003166, \"Year\": \"1975\"}, {\"LOCATION\": \"USA\", \"TIME\": 1976, \"Value\": 37.7559727, \"Year\": \"1976\"}, {\"LOCATION\": \"USA\", \"TIME\": 1977, \"Value\": 38.22485207, \"Year\": \"1977\"}, {\"LOCATION\": \"USA\", \"TIME\": 1978, \"Value\": 38.97247706, \"Year\": \"1978\"}, {\"LOCATION\": \"USA\", \"TIME\": 1979, \"Value\": 37.64195057, \"Year\": \"1979\"}, {\"LOCATION\": \"USA\", \"TIME\": 1980, \"Value\": 36.55215104, \"Year\": \"1980\"}, {\"LOCATION\": \"USA\", \"TIME\": 1981, \"Value\": 35.17400058, \"Year\": \"1981\"}, {\"LOCATION\": \"USA\", \"TIME\": 1982, \"Value\": 34.72409152, \"Year\": \"1982\"}, {\"LOCATION\": \"USA\", \"TIME\": 1983, \"Value\": 34.28645028, \"Year\": \"1983\"}, {\"LOCATION\": \"USA\", \"TIME\": 1984, \"Value\": 33.43217198, \"Year\": \"1984\"}, {\"LOCATION\": \"USA\", \"TIME\": 1985, \"Value\": 32.9782197, \"Year\": \"1985\"}, {\"LOCATION\": \"USA\", \"TIME\": 1986, \"Value\": 32.19021491, \"Year\": \"1986\"}, {\"LOCATION\": \"USA\", \"TIME\": 1987, \"Value\": 31.02222222, \"Year\": \"1987\"}, {\"LOCATION\": \"USA\", \"TIME\": 1988, \"Value\": 30.06917423, \"Year\": \"1988\"}, {\"LOCATION\": \"USA\", \"TIME\": 1989, \"Value\": 29.36357908, \"Year\": \"1989\"}, {\"LOCATION\": \"USA\", \"TIME\": 1990, \"Value\": 28.45544956, \"Year\": \"1990\"}, {\"LOCATION\": \"USA\", \"TIME\": 1991, \"Value\": 26.57109191, \"Year\": \"1991\"}, {\"LOCATION\": \"USA\", \"TIME\": 1992, \"Value\": 25.05773672, \"Year\": \"1992\"}, {\"LOCATION\": \"USA\", \"TIME\": 1993, \"Value\": 23.87640449, \"Year\": \"1993\"}, {\"LOCATION\": \"USA\", \"TIME\": 1994, \"Value\": 23.88451444, \"Year\": \"1994\"}, {\"LOCATION\": \"USA\", \"TIME\": 1995, \"Value\": 24.57998539, \"Year\": \"1995\"}, {\"LOCATION\": \"USA\", \"TIME\": 1996, \"Value\": 23.82394868, \"Year\": \"1996\"}, {\"LOCATION\": \"USA\", \"TIME\": 1997, \"Value\": 23.78649162, \"Year\": \"1997\"}, {\"LOCATION\": \"USA\", \"TIME\": 1998, \"Value\": 23.7458194, \"Year\": \"1998\"}, {\"LOCATION\": \"USA\", \"TIME\": 1999, \"Value\": 23.46278317, \"Year\": \"1999\"}, {\"LOCATION\": \"USA\", \"TIME\": 2000, \"Value\": 23.08892356, \"Year\": \"2000\"}, {\"LOCATION\": \"USA\", \"TIME\": 2001, \"Value\": 23.58208955, \"Year\": \"2001\"}, {\"LOCATION\": \"USA\", \"TIME\": 2002, \"Value\": 22.09131075, \"Year\": \"2002\"}, {\"LOCATION\": \"USA\", \"TIME\": 2003, \"Value\": 20.57553957, \"Year\": \"2003\"}, {\"LOCATION\": \"USA\", \"TIME\": 2004, \"Value\": 19.63534362, \"Year\": \"2004\"}, {\"LOCATION\": \"USA\", \"TIME\": 2005, \"Value\": 18.97506925, \"Year\": \"2005\"}, {\"LOCATION\": \"USA\", \"TIME\": 2006, \"Value\": 19.24629879, \"Year\": \"2006\"}, {\"LOCATION\": \"USA\", \"TIME\": 2007, \"Value\": 19.84334204, \"Year\": \"2007\"}, {\"LOCATION\": \"USA\", \"TIME\": 2008, \"Value\": 20.05012531, \"Year\": \"2008\"}, {\"LOCATION\": \"USA\", \"TIME\": 2009, \"Value\": 19.78021978, \"Year\": \"2009\"}, {\"LOCATION\": \"USA\", \"TIME\": 2010, \"Value\": 18.81067961, \"Year\": \"2010\"}, {\"LOCATION\": \"USA\", \"TIME\": 2011, \"Value\": 17.78846154, \"Year\": \"2011\"}, {\"LOCATION\": \"USA\", \"TIME\": 2012, \"Value\": 19.08665105, \"Year\": \"2012\"}, {\"LOCATION\": \"USA\", \"TIME\": 2013, \"Value\": 17.90697674, \"Year\": \"2013\"}, {\"LOCATION\": \"USA\", \"TIME\": 2014, \"Value\": 17.45120551, \"Year\": \"2014\"}, {\"LOCATION\": \"USA\", \"TIME\": 2015, \"Value\": 18.88268156, \"Year\": \"2015\"}, {\"LOCATION\": \"USA\", \"TIME\": 2016, \"Value\": 18.1420765, \"Year\": \"2016\"}, {\"LOCATION\": \"USA\", \"TIME\": 2017, \"Value\": 18.17215728, \"Year\": \"2017\"}, {\"LOCATION\": \"USA\", \"TIME\": 2018, \"Value\": 18.91058582, \"Year\": \"2018\"}, {\"LOCATION\": \"USA\", \"TIME\": 2019, \"Value\": 18.47070507, \"Year\": \"2019\"}, {\"LOCATION\": \"USA\", \"TIME\": 2020, \"Value\": 17.65249538, \"Year\": \"2020\"}, {\"LOCATION\": \"USA\", \"TIME\": 2021, \"Value\": 16.86417502, \"Year\": \"2021\"}]}, \"mark\": {\"type\": \"bar\"}, \"encoding\": {\"x\": {\"field\": \"Year\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"ticks\": false, \"labelAngle\": 45}}, \"y\": {\"field\": \"Value\", \"type\": \"quantitative\", \"title\": \"\", \"stack\": null, \"axis\": {\"grid\": false}}, \"xOffset\": {\"field\": \"LOCATION\"}, \"opacity\": {\"value\": 0.9}, \"color\": {\"field\": \"LOCATION\", \"type\": \"nominal\", \"title\": \"Country\", \"scale\": {\"range\": [\"#033542\", \"#78969d\"]}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"England - Immigration\", \"subtitle\": [\"Percentage of population not born in the UK by parlimentary constituency. Source: ONS Census 2021\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\", \"color\": \"black\"}, \"config\": {\"background\": \"white\", \"view\": {\"stroke\": \"transparent\"}}, \"width\": 300, \"height\": 300, \"data\": {\"url\": \"https://raw.githubusercontent.com/sadieward/sadieward.github.io/main/ENGconstintuenciesGEO.json\", \"format\": {\"type\": \"topojson\", \"feature\": \"wpc\"}}, \"transform\": [{\"lookup\": \"properties.PCON13NM\", \"from\": {\"key\": \"ConstituencyName\", \"fields\": [\"% not born in UK\"], \"data\": {\"url\": \"https://raw.githubusercontent.com/sadieward/sadieward.github.io/main/imm_constituencies.csv\"}}}], \"projection\": {\"type\": \"mercator\"}, \"mark\": {\"type\": \"geoshape\", \"stroke\": \"white\", \"strokeWidth\": 0}, \"encoding\": {\"color\": {\"field\": \"% not born in UK\", \"type\": \"quantitative\"}, \"tooltip\": {\"field\": \"properties.PCON13NM\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"height\": 300, \"width\": 100, \"title\": {\"text\": \"Cryptocurrency ownership by ethnicity in USA\", \"subtitle\": \"as a % of the population or total crypto owners, source: Morning Consult Crypto Report\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"values\": [{\"category\": \"All US adults\", \"Ethnicity\": \"White\", \"value\": 67}, {\"category\": \"All US adults\", \"Ethnicity\": \"Black\", \"value\": 11}, {\"category\": \"All US adults\", \"Ethnicity\": \"Hispanic\", \"value\": 17}, {\"category\": \"All US adults\", \"Ethnicity\": \"Asian or other\", \"value\": 5}, {\"category\": \"Crypto owners\", \"Ethnicity\": \"White\", \"value\": 58}, {\"category\": \"Crypto owners\", \"Ethnicity\": \"Black\", \"value\": 12}, {\"category\": \"Crypto owners\", \"Ethnicity\": \"Hispanic\", \"value\": 23}, {\"category\": \"Crypto owners\", \"Ethnicity\": \"Asian or other\", \"value\": 6}]}, \"mark\": \"bar\", \"encoding\": {\"column\": {\"field\": \"Ethnicity\", \"type\": \"nominal\", \"title\": null}, \"x\": {\"field\": \"category\", \"type\": \"nominal\", \"axis\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"axis\": {\"title\": null}}, \"color\": {\"field\": \"category\", \"title\": null, \"scale\": {\"range\": [\"#033542\", \"#78969d\"]}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Bitcoin: long run\", \"subtitle\": \"Daily BTC price in USD. Source: Coinbase via FRED\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"#0d0d0d\", \"subtitleColor\": \"#0d0e0e\"}, \"config\": {\"background\": \"whitesmoke\", \"view\": {\"stroke\": \"transparent\"}}, \"width\": 265, \"height\": 300, \"data\": {\"name\": \"myData\", \"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/crypto/dataFREDbtcCoinbase.csv\"}, \"mark\": {\"type\": \"line\", \"point\": false, \"interpolate\": \"linear\", \"color\": \"#314686\"}, \"transform\": [{\"calculate\": \"timeParse(datum.DATE, '%d/%m/%Y')\", \"as\": \"date\"}, {\"calculate\": \"year(datum.date)\", \"as\": \"year\"}, {\"filter\": \"datum.year>=minYear\"}, {\"filter\": \"datum.year<=maxYear\"}], \"params\": [{\"name\": \"minYear\", \"value\": 2016, \"bind\": {\"input\": \"range\", \"min\": 2016, \"max\": 2021, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2021, \"bind\": {\"input\": \"range\", \"min\": 2016, \"max\": 2021, \"step\": 1, \"name\": \"End year:\"}}], \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"domainColor\": \"dimgrey\", \"labelColor\": \"#0a0e0c\", \"tickColor\": \"pink\", \"gridColor\": \"dimgrey\"}}, \"y\": {\"field\": \"CBBTCUSD\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false, \"domainColor\": \"dimgrey\", \"labelColor\": \"#0b0b0b\", \"tickColor\": \"pink\", \"gridColor\": \"dimgrey\", \"format\": \"$,.5\"}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Ether: long run\", \"subtitle\": \"Daily ETH price in USD. Source: Investing.com\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\", \"subtitleColor\": \"black\"}, \"config\": {\"background\": \"whitesmoke\", \"view\": {\"stroke\": \"transparent\"}}, \"width\": 270, \"height\": 300, \"data\": {\"name\": \"myData\", \"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/crypto/dataETH.csv\"}, \"mark\": {\"type\": \"line\", \"point\": false, \"interpolate\": \"linear\", \"color\": \"#314686\"}, \"transform\": [{\"calculate\": \"year(datum.Date)\", \"as\": \"year\"}, {\"filter\": \"datum.year>=minYear\"}, {\"filter\": \"datum.year<=maxYear\"}], \"params\": [{\"name\": \"minYear\", \"value\": 2016, \"bind\": {\"input\": \"range\", \"min\": 2016, \"max\": 2021, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2021, \"bind\": {\"input\": \"range\", \"min\": 2016, \"max\": 2021, \"step\": 1, \"name\": \"End year:\"}}], \"encoding\": {\"x\": {\"field\": \"Date\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"domainColor\": \"dimgrey\", \"labelColor\": \"black\", \"tickColor\": \"pink\", \"gridColor\": \"dimgrey\"}}, \"y\": {\"field\": \"Price\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false, \"domainColor\": \"dimgrey\", \"labelColor\": \"black\", \"tickColor\": \"pink\", \"gridColor\": \"dimgrey\", \"format\": \"$,.5\"}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"A simple bar chart with embedded data.\", \"data\": {\"values\": [{\"Model name\": \"Model 1\", \"Runtime (minutes)\": 6.78}, {\"Model name\": \"Model 2\", \"Runtime (minutes)\": 6.74}, {\"Model name\": \"Model 3\", \"Runtime (minutes)\": 6.81}, {\"Model name\": \"Model 4\", \"Runtime (minutes)\": 7.33}]}, \"mark\": \"bar\", \"encoding\": {\"y\": {\"field\": \"Model name\", \"type\": \"nominal\", \"axis\": {\"labelAngle\": 0}}, \"x\": {\"field\": \"Runtime (minutes)\", \"type\": \"quantitative\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"A simple bar chart with embedded data.\", \"title\": \"Number of iterations before convergence\", \"data\": {\"values\": [{\"Model name\": \"Model 1\", \"Number of iterations\": 9, \"block\": \"postcode+dob\"}, {\"Model name\": \"Model 2\", \"Number of iterations\": 6, \"block\": \"postcode+dob\"}, {\"Model name\": \"Model 3\", \"Number of iterations\": 6, \"block\": \"postcode+dob\"}, {\"Model name\": \"Model 4\", \"Number of iterations\": 6, \"block\": \"postcode+dob\"}, {\"Model name\": \"Model 5\", \"Number of iterations\": 6, \"block\": \"postcode+dob\"}, {\"Model name\": \"Model 1\", \"Number of iterations\": 14, \"block\": \"name\"}, {\"Model name\": \"Model 2\", \"Number of iterations\": 9, \"block\": \"name\"}, {\"Model name\": \"Model 3\", \"Number of iterations\": 6, \"block\": \"name\"}, {\"Model name\": \"Model 4\", \"Number of iterations\": 6, \"block\": \"name\"}, {\"Model name\": \"Model 5\", \"Number of iterations\": 6, \"block\": \"name\"}]}, \"mark\": \"bar\", \"encoding\": {\"y\": {\"field\": \"Model name\", \"type\": \"nominal\", \"axis\": {\"labelAngle\": 0}}, \"x\": {\"field\": \"Number of iterations\", \"type\": \"quantitative\"}, \"color\": {\"field\": \"block\", \"type\": \"nominal\"}, \"column\": {\"field\": \"block\", \"type\": \"nominal\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"US 10y bond yield\", \"title\": {\"text\": \"Median wages\", \"subtitle\": \"Employed full time: Median usual weekly real earnings (BLS via FRED)\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/usa/data_FRED-LES1252881600Q.json\", \"format\": {\"type\": \"json\", \"property\": \"observations\"}}, \"height\": 300, \"width\": 300, \"mark\": {\"type\": \"line\", \"point\": false, \"interpolate\": \"monotone\", \"color\": \"blue\"}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"ticks\": false}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"US 10y bond yield\", \"title\": {\"text\": \"Federal Debt\", \"subtitle\": \"Percent of GDP, Seasonally Adjusted (US OMB via FRED)\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/usa/data_FRED-GFDEGDQ188S.json\", \"format\": {\"type\": \"json\", \"property\": \"observations\"}}, \"height\": 300, \"width\": 300, \"mark\": {\"type\": \"line\", \"point\": false, \"interpolate\": \"monotone\", \"color\": \"blue\"}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"ticks\": false}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"US 10y bond yield\", \"title\": {\"text\": \"Real GDP - per capita\", \"subtitle\": \"Chained 2012 Dollars, Seasonally Adjusted Annual Rate (BEA via FRED)\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/usa/data_FRED-A939RX0Q048SBEA.json\", \"format\": {\"type\": \"json\", \"property\": \"observations\"}}, \"height\": 300, \"width\": 300, \"mark\": {\"type\": \"line\", \"point\": false, \"interpolate\": \"monotone\", \"color\": \"blue\"}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"ticks\": false}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"US 10y bond yield\", \"title\": {\"text\": \"Nonfarm Payroll\", \"subtitle\": \"Employees, thousands, seasonanally adjusted (FRED: PAYEMS)\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/usa/data_FRED-PAYEMS.json\", \"format\": {\"type\": \"json\", \"property\": \"observations\"}}, \"height\": 300, \"width\": 300, \"mark\": {\"type\": \"line\", \"point\": false, \"interpolate\": \"monotone\", \"color\": \"blue\"}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"ticks\": false}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"US 10y bond yield\", \"title\": {\"text\": \"Unemployment\", \"subtitle\": \"Number unemployed as % of labor force (FRED: UNRATE)\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/usa/data_FRED-UNRATE.json\", \"format\": {\"type\": \"json\", \"property\": \"observations\"}}, \"height\": 300, \"width\": 300, \"mark\": {\"type\": \"line\", \"point\": false, \"interpolate\": \"monotone\", \"color\": \"blue\"}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"ticks\": false}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"US inflation\", \"subtitle\": \"PCE, rate of change on a year ago\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/hyungkwonko/tmp-data/main/observation.json\", \"format\": {\"type\": \"json\", \"property\": \"observations\"}}, \"transform\": [{\"window\": [{\"op\": \"lag\", \"param\": 12, \"field\": \"value\", \"as\": \"laggedValue\"}]}, {\"filter\": \"isValid(datum.laggedValue)\"}, {\"calculate\": \"datum.value/datum.laggedValue-1\", \"as\": \"data\"}], \"height\": 300, \"width\": 290, \"padding\": {\"left\": 20, \"top\": 5, \"right\": 5, \"bottom\": 20}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"title\": null}}, \"layer\": [{\"encoding\": {\"y\": {\"field\": \"data\", \"type\": \"quantitative\", \"title\": null}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"align\": false, \"interpolate\": \"step\", \"color\": \"red\"}}, {\"transform\": [{\"filter\": {\"selection\": \"hover\"}}], \"mark\": {\"type\": \"circle\", \"filled\": true, \"size\": 200, \"stroke\": \"#DCDCDC\", \"fillOpacity\": 1, \"strokeOpacity\": 0.8, \"color\": \"red\", \"strokeWidth\": 5}}]}, {\"mark\": \"rule\", \"encoding\": {\"opacity\": {\"condition\": {\"value\": 0, \"selection\": \"hover\"}, \"value\": 0}, \"tooltip\": [{\"field\": \"date\", \"type\": \"temporal\", \"format\": \"%b-%Y\", \"title\": \"Date\"}, {\"field\": \"data\", \"type\": \"quantitative\", \"format\": \".2%\", \"title\": \"Inflation\"}]}, \"selection\": {\"hover\": {\"type\": \"single\", \"fields\": [\"date\"], \"nearest\": true, \"on\": \"mouseover\", \"empty\": \"none\", \"clear\": \"mouseout\"}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"US 10y bond yield\", \"title\": {\"text\": \"Bond yield (government)\", \"subtitle\": \"10-Year Treasury Constant Maturity Rate (FRED: DGS10)\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/usa/data_FRED-DGS10.json\", \"format\": {\"type\": \"json\", \"property\": \"observations\"}}, \"height\": 300, \"width\": 300, \"mark\": {\"type\": \"line\", \"point\": false, \"interpolate\": \"monotone\", \"color\": \"blue\"}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"ticks\": false}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Creates year variable, then defined parameters on this and adds sliders.\", \"title\": {\"text\": \"CPI - Chicago versus NYC\", \"subtitle\": [\"All items. Source: FRED (CUURA207SA0, CUURA101SA0)\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 750, \"height\": 200, \"mark\": {\"type\": \"line\", \"strokeWidth\": 1}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/usa/data_FRED_inflationNYCChicago.csv\"}, \"transform\": [{\"fold\": [\"CUURA207SA0\", \"CUURA101SA0\"], \"as\": [\"metric\", \"value\"]}, {\"calculate\": \"{'CUURA207SA0': 'Chicago', 'CUURA101SA0': 'NYC'}[datum.metric]\", \"as\": \"metricClean\"}, {\"calculate\": \"year(datum.Date)\", \"as\": \"year\"}, {\"filter\": \"datum.year>=minYear\"}, {\"filter\": \"datum.year<=maxYear\"}, {\"calculate\": \"datum.value/100\", \"as\": \"valuePCT\"}, {\"calculate\": \"timeParse(datum.DATE, '%d/%m/%Y')\", \"as\": \"date2\"}], \"params\": [{\"name\": \"minYear\", \"value\": 1940, \"bind\": {\"input\": \"range\", \"min\": 1940, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 1940, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"encoding\": {\"x\": {\"field\": \"date2\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"format\": \"d\", \"grid\": false}}, \"color\": {\"field\": \"metricClean\", \"type\": \"ordinal\", \"legend\": {\"orient\": \"top\", \"columns\": 2, \"title\": null}, \"scale\": {\"range\": [\"rgb(134, 38, 51)\", \"rgba(0,47,167,0.7)\"]}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Creates year variable, then defined parameters on this and adds sliders.\", \"title\": {\"text\": \"Inflation - Chicago versus NYC\", \"subtitle\": [\"All items. Source: FRED (CUURA207SA0, CUURA101SA0)\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 750, \"height\": 300, \"mark\": {\"type\": \"line\", \"strokeWidth\": 1}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/usa/data_FRED_inflationNYCChicago.csv\"}, \"transform\": [{\"fold\": [\"CUURA207SA0_PC1\", \"CUURA101SA0_PC1\"], \"as\": [\"metric\", \"value\"]}, {\"calculate\": \"{'CUURA207SA0_PC1': 'Chicago', 'CUURA101SA0_PC1': 'NYC'}[datum.metric]\", \"as\": \"metricClean\"}, {\"calculate\": \"year(datum.Date)\", \"as\": \"year\"}, {\"filter\": \"datum.year>=minYear\"}, {\"filter\": \"datum.year<=maxYear\"}, {\"calculate\": \"datum.value/100\", \"as\": \"valuePCT\"}, {\"calculate\": \"timeParse(datum.DATE, '%d/%m/%Y')\", \"as\": \"date2\"}], \"params\": [{\"name\": \"minYear\", \"value\": 1940, \"bind\": {\"input\": \"range\", \"min\": 1940, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 1940, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"encoding\": {\"x\": {\"field\": \"date2\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false}}, \"y\": {\"field\": \"valuePCT\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"format\": \"%\", \"grid\": false}}, \"color\": {\"field\": \"metricClean\", \"type\": \"ordinal\", \"legend\": {\"orient\": \"top\", \"columns\": 2, \"title\": null}, \"scale\": {\"range\": [\"rgb(134, 38, 51)\", \"rgba(0,47,167,0.7)\"]}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Inflation - US\", \"subtitle\": \"All items, FRED series: CPIAUCSL_PC1\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 500, \"height\": 300, \"mark\": {\"type\": \"line\", \"color\": \"rgb(0,112,192)\", \"strokeWidth\": 2, \"opacity\": 1}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/usa/data_FRED_CPIAUCSL.csv\"}, \"transform\": [{\"calculate\": \"year(datum.Date)\", \"as\": \"year\"}, {\"filter\": \"datum.year>=minYear\"}, {\"filter\": \"datum.year<=maxYear\"}, {\"calculate\": \"datum.CPIAUCSL_PC1/100\", \"as\": \"value\"}], \"params\": [{\"name\": \"minYear\", \"value\": 1989, \"bind\": {\"input\": \"range\", \"min\": 1963, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 1963, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"encoding\": {\"x\": {\"field\": \"Date\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"format\": \"%\"}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Various US measures state by state\", \"title\": {\"text\": \"Gun deaths and income - US states\", \"subtitle\": \"Median income (x), and firearm deaths per 100k population\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/vega/master/US%20states2.csv\"}, \"height\": 300, \"width\": 300, \"layer\": [{\"mark\": {\"type\": \"circle\", \"color\": \"rgb(0,47,167)\", \"size\": 100}, \"encoding\": {\"x\": {\"field\": \"Med income\", \"type\": \"quantitative\", \"scale\": {\"domain\": [40000, 80000]}, \"title\": null}, \"y\": {\"field\": \"Firearm deaths\", \"type\": \"quantitative\", \"title\": null}}}, {\"mark\": {\"type\": \"line\", \"color\": \"grey\"}, \"transform\": [{\"regression\": \"Firearm deaths\", \"on\": \"Med income\"}], \"encoding\": {\"x\": {\"field\": \"Med income\", \"type\": \"quantitative\"}, \"y\": {\"field\": \"Firearm deaths\", \"type\": \"quantitative\"}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Bank Rate\", \"title\": {\"text\": \"Services jobs\", \"subtitle\": \"Employment in Service providing jobs. Thousands, SA, (BLS via FRED)\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/usa/data_FRED-SRVPRD.json\", \"format\": {\"type\": \"json\", \"property\": \"observations\"}}, \"height\": 300, \"width\": 300, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"title\": null}}, \"layer\": [{\"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"align\": false, \"interpolate\": \"step\", \"color\": \"rgb(0,47,167)\"}}, {\"transform\": [{\"filter\": {\"selection\": \"hover\"}}], \"mark\": {\"type\": \"circle\", \"size\": 150, \"color\": \"red\"}}]}, {\"mark\": \"rule\", \"encoding\": {\"opacity\": {\"condition\": {\"value\": 0, \"selection\": \"hover\"}, \"value\": 0}, \"tooltip\": [{\"field\": \"date\", \"type\": \"temporal\", \"format\": \"%b-%Y\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"format\": \",.0f\", \"title\": \"Jobs (k)\"}]}, \"selection\": {\"hover\": {\"type\": \"single\", \"fields\": [\"date\"], \"nearest\": true, \"on\": \"mouseover\", \"empty\": \"none\", \"clear\": \"mouseout\"}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Bank Rate\", \"title\": {\"text\": \"Manufacturing jobs\", \"subtitle\": \"Employment in Manufacturing. Thousands, SA, (BLS via FRED)\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/usa/data_FRED-MANEMP.json\", \"format\": {\"type\": \"json\", \"property\": \"observations\"}}, \"height\": 300, \"width\": 300, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"title\": null}}, \"layer\": [{\"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"align\": false, \"interpolate\": \"step\", \"color\": \"rgb(0,47,167)\"}}, {\"transform\": [{\"filter\": {\"selection\": \"hover\"}}], \"mark\": {\"type\": \"circle\", \"size\": 150, \"color\": \"red\"}}]}, {\"mark\": \"rule\", \"encoding\": {\"opacity\": {\"condition\": {\"value\": 0, \"selection\": \"hover\"}, \"value\": 0}, \"tooltip\": [{\"field\": \"date\", \"type\": \"temporal\", \"format\": \"%b-%Y\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"format\": \",.0f\", \"title\": \"Jobs (k)\"}]}, \"selection\": {\"hover\": {\"type\": \"single\", \"fields\": [\"date\"], \"nearest\": true, \"on\": \"mouseover\", \"empty\": \"none\", \"clear\": \"mouseout\"}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"UK - household interest rates\", \"subtitle\": [\"Source: Bank of England. Series: IUMCCTL, IUMTLMV\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"#cbc7cf\", \"subtitleColor\": \"#cbc7cf\"}, \"config\": {\"background\": \"#122b39\", \"view\": {\"stroke\": \"transparent\"}}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/interestRatesUK_household.csv\"}, \"transform\": [{\"fold\": [\"creditCard\", \"mortgage_revertTo\"], \"as\": [\"variable\", \"value\"]}], \"height\": 300, \"width\": 300, \"mark\": {\"type\": \"line\", \"strokeWidth\": 2}, \"encoding\": {\"x\": {\"field\": \"date2\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false, \"labelColor\": \"#cbc7cf\"}}, \"y\": {\"field\": \"value\", \"title\": null, \"type\": \"quantitative\", \"axis\": {\"grid\": false, \"gridColor\": \"aliceblue\", \"gridWidth\": 0.5, \"gridDash\": 1, \"labelColor\": \"#cbc7cf\"}}, \"color\": {\"field\": \"variable\", \"title\": null, \"scale\": {\"range\": [\"yellow\", \"red\"]}, \"legend\": {\"orient\": \"bottom-left\", \"labelColor\": \"#cbc7cf\", \"labelExpr\": \"{'creditCard': 'Credit cards', 'mortgage_revertTo': 'Mortgages'}[datum.label]\"}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Borrowing costs - UK, US, Germany\", \"subtitle\": [\"Yields, 10y bonds. Source: FRED, BoE, Bundesbank\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"#cbc7cf\", \"subtitleColor\": \"#cbc7cf\"}, \"config\": {\"background\": \"#122b39\", \"view\": {\"stroke\": \"transparent\"}}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/ukYieldCurve.csv\"}, \"transform\": [{\"calculate\": \"year(datum.Date)\", \"as\": \"year\"}, {\"filter\": \"datum.year>=minYear\"}, {\"filter\": \"datum.year<=maxYear\"}, {\"filter\": \"datum.y1!=0\"}], \"params\": [{\"name\": \"minYear\", \"value\": 2005, \"bind\": {\"input\": \"range\", \"min\": 1979, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 1979, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"repeat\": {\"layer\": [\"us10y\", \"y10\", \"german10y\"]}, \"spec\": {\"height\": 300, \"width\": 280, \"mark\": {\"type\": \"line\", \"strokeWidth\": 2}, \"encoding\": {\"x\": {\"field\": \"Date\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false, \"labelColor\": \"#cbc7cf\"}}, \"y\": {\"field\": {\"repeat\": \"layer\"}, \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false, \"labelColor\": \"#cbc7cf\"}}, \"color\": {\"datum\": {\"repeat\": \"layer\"}, \"scale\": {\"range\": [\"red\", \"orange\", \"blue\"]}, \"legend\": {\"labelExpr\": \"{'us10y': 'US', 'y10': 'UK', 'german10y':'Germany'}[datum.label]\", \"orient\": \"top-right\", \"labelColor\": \"#cbc7cf\", \"title\": \"Country\", \"titleColor\": \"#cbc7cf\"}}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"UK and US borrowing - premium over Germany\", \"subtitle\": [\"10y bonds yields (%), vs German. FRED, BoE, Bundesbank\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"#cbc7cf\", \"subtitleColor\": \"#cbc7cf\"}, \"config\": {\"background\": \"#122b39\", \"view\": {\"stroke\": \"transparent\"}}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/ukYieldCurve.csv\"}, \"transform\": [{\"calculate\": \"year(datum.Date)\", \"as\": \"year\"}, {\"calculate\": \"month(datum.Date)\", \"as\": \"month\"}, {\"calculate\": \"datum.us10y-datum.german10y\", \"as\": \"US_Germany\"}, {\"calculate\": \"datum.y10-datum.german10y\", \"as\": \"UK_Germany\"}, {\"filter\": \"datum.year>2021\"}, {\"filter\": \"datum.month>4\"}, {\"filter\": \"datum.y1!=0\"}], \"repeat\": {\"layer\": [\"US_Germany\", \"UK_Germany\"]}, \"spec\": {\"height\": 300, \"width\": 300, \"mark\": {\"type\": \"line\", \"strokeWidth\": 2}, \"encoding\": {\"x\": {\"field\": \"Date\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false, \"labelColor\": \"#cbc7cf\"}}, \"y\": {\"field\": {\"repeat\": \"layer\"}, \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false, \"labelColor\": \"#cbc7cf\"}}, \"color\": {\"datum\": {\"repeat\": \"layer\"}, \"scale\": {\"range\": [\"red\", \"orange\", \"blue\"]}, \"legend\": {\"labelExpr\": \"{'US_Germany': 'US', 'UK_Germany': 'UK'}[datum.label]\", \"orient\": \"bottom-right\", \"labelColor\": \"#cbc7cf\", \"title\": \"Country\", \"titleColor\": \"#cbc7cf\"}}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Borrowing costs - Britain vs America\", \"subtitle\": [\"Yields, 10y bonds. Source: FRED and BoE\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"#cbc7cf\", \"subtitleColor\": \"#cbc7cf\"}, \"config\": {\"background\": \"#122b39\", \"view\": {\"stroke\": \"transparent\"}}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/ukYieldCurve.csv\"}, \"transform\": [{\"calculate\": \"year(datum.Date)\", \"as\": \"year\"}, {\"filter\": \"datum.year>=minYear\"}, {\"filter\": \"datum.year<=maxYear\"}, {\"filter\": \"datum.y1!=0\"}], \"params\": [{\"name\": \"minYear\", \"value\": 2005, \"bind\": {\"input\": \"range\", \"min\": 1979, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 1979, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"repeat\": {\"layer\": [\"us10y\", \"y10\"]}, \"spec\": {\"height\": 300, \"width\": 300, \"mark\": {\"type\": \"line\", \"strokeWidth\": 2}, \"encoding\": {\"x\": {\"field\": \"Date\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false, \"labelColor\": \"#cbc7cf\"}}, \"y\": {\"field\": {\"repeat\": \"layer\"}, \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false, \"labelColor\": \"#cbc7cf\"}}, \"color\": {\"datum\": {\"repeat\": \"layer\"}, \"scale\": {\"range\": [\"red\", \"orange\"]}, \"legend\": {\"labelExpr\": \"{'us10y': 'US', 'y10': 'UK'}[datum.label]\", \"orient\": \"top-right\", \"labelColor\": \"#cbc7cf\", \"title\": \"Country\", \"titleColor\": \"#cbc7cf\"}}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Borrowing costs - UK government (1979-2022)\", \"subtitle\": [\"Spot Curve, Nominal, Source:BoE\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"#cbc7cf\", \"subtitleColor\": \"#cbc7cf\"}, \"config\": {\"background\": \"#122b39\", \"view\": {\"stroke\": \"transparent\"}}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/ukYieldCurve.csv\"}, \"transform\": [{\"calculate\": \"year(datum.Date)\", \"as\": \"year\"}, {\"filter\": \"datum.year>=minYear\"}, {\"filter\": \"datum.year<=maxYear\"}, {\"filter\": \"datum.y1!=0\"}], \"params\": [{\"name\": \"minYear\", \"value\": 2005, \"bind\": {\"input\": \"range\", \"min\": 1979, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 1979, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"repeat\": {\"layer\": [\"y1\", \"y10\"]}, \"spec\": {\"height\": 300, \"width\": 280, \"mark\": {\"type\": \"line\", \"strokeWidth\": 2}, \"encoding\": {\"x\": {\"field\": \"Date\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false, \"labelColor\": \"#cbc7cf\"}}, \"y\": {\"field\": {\"repeat\": \"layer\"}, \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false, \"labelColor\": \"#cbc7cf\"}}, \"color\": {\"datum\": {\"repeat\": \"layer\"}, \"scale\": {\"range\": [\"red\", \"orange\"]}, \"legend\": {\"labelExpr\": \"{'y1': '1-year', 'y10': '10-year'}[datum.label]\", \"orient\": \"top-right\", \"labelColor\": \"#cbc7cf\", \"title\": \"Maturity\", \"titleColor\": \"#cbc7cf\"}}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"GDP - quarterly growth rates (1955-2022)\", \"subtitle\": [\"Chained volume measure, Q-o-Q rate. Source: ONS (IHYQ)\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"#cbc7cf\", \"subtitleColor\": \"#cbc7cf\"}, \"width\": 280, \"height\": 300, \"config\": {\"background\": \"#122b39\", \"view\": {\"stroke\": \"transparent\"}}, \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/IHYQ/dataset/PN2/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"transform\": [{\"calculate\": \"replace(datum.date, ' Q1', '-01')\", \"as\": \"date1\"}, {\"calculate\": \"replace(datum.date1, ' Q2', '-04')\", \"as\": \"date2\"}, {\"calculate\": \"replace(datum.date2, ' Q3', '-07')\", \"as\": \"date3\"}, {\"calculate\": \"replace(datum.date3, ' Q4', '-10')\", \"as\": \"date4\"}, {\"calculate\": \"timeParse(datum.date4, '%Y-%m')\", \"as\": \"dateClean\"}, {\"filter\": \"datum.year>=minYear\"}, {\"filter\": \"datum.year<=maxYear\"}, {\"filter\": \"datum.value>=-10\"}, {\"filter\": \"datum.value<=10\"}], \"params\": [{\"name\": \"minYear\", \"value\": 2016, \"bind\": {\"input\": \"range\", \"min\": 1988, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 1988, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"layer\": [{\"mark\": {\"type\": \"bar\", \"color\": \"#ff9a00\", \"width\": 10, \"strokeWidth\": 2, \"opacity\": 1}, \"encoding\": {\"x\": {\"field\": \"dateClean\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false, \"labelColor\": \"#cbc7cf\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false, \"labelColor\": \"#cbc7cf\"}}}}, {\"encoding\": {\"x\": {\"aggregate\": \"max\", \"field\": \"dateClean\", \"type\": \"temporal\"}, \"y\": {\"aggregate\": {\"argmax\": \"dateClean\"}, \"field\": \"value\", \"type\": \"quantitative\"}, \"text\": {\"aggregate\": {\"argmax\": \"dateClean\"}, \"field\": \"value\", \"type\": \"nominal\"}}, \"layer\": [{\"mark\": {\"type\": \"text\", \"align\": \"left\", \"dx\": -8, \"dy\": 8, \"color\": \"#ff9a00\"}}]}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Public Sector Debt (1993-2022)\", \"subtitle\": [\"Net Debt, % of GDP. Source: ONS (HS6X)\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"#cbc7cf\", \"subtitleColor\": \"#cbc7cf\"}, \"width\": 280, \"height\": 300, \"config\": {\"background\": \"#122b39\", \"view\": {\"stroke\": \"transparent\"}}, \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/hf6x/dataset/pusf/data\", \"format\": {\"type\": \"json\", \"property\": \"months\"}}, \"transform\": [{\"calculate\": \"replace(datum.date, ' JAN', '-01')\", \"as\": \"date1\"}, {\"calculate\": \"replace(datum.date1, ' FEB', '-02')\", \"as\": \"date2\"}, {\"calculate\": \"replace(datum.date2, ' MAR', '-03')\", \"as\": \"date3\"}, {\"calculate\": \"replace(datum.date3, ' APR', '-04')\", \"as\": \"date4\"}, {\"calculate\": \"replace(datum.date4, ' MAY', '-05')\", \"as\": \"date5\"}, {\"calculate\": \"replace(datum.date5, ' JUN', '-06')\", \"as\": \"date6\"}, {\"calculate\": \"replace(datum.date6, ' JUL', '-07')\", \"as\": \"date7\"}, {\"calculate\": \"replace(datum.date7, ' AUG', '-08')\", \"as\": \"date8\"}, {\"calculate\": \"replace(datum.date8, ' SEP', '-09')\", \"as\": \"date9\"}, {\"calculate\": \"replace(datum.date9, ' OCT', '-10')\", \"as\": \"date10\"}, {\"calculate\": \"replace(datum.date10, ' NOV', '-11')\", \"as\": \"date11\"}, {\"calculate\": \"replace(datum.date11, ' DEC', '-12')\", \"as\": \"date12\"}, {\"calculate\": \"timeParse(datum.date12, '%Y-%m')\", \"as\": \"dateClean\"}, {\"filter\": \"datum.year>=minYear\"}, {\"filter\": \"datum.year<=maxYear\"}], \"params\": [{\"name\": \"minYear\", \"value\": 1993, \"bind\": {\"input\": \"range\", \"min\": 1993, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 1988, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"layer\": [{\"mark\": {\"type\": \"line\", \"color\": \"#ff9a00\", \"width\": 10, \"strokeWidth\": 2, \"opacity\": 1}, \"encoding\": {\"x\": {\"field\": \"dateClean\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false, \"labelColor\": \"#cbc7cf\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false, \"labelColor\": \"#cbc7cf\"}}}}, {\"encoding\": {\"x\": {\"aggregate\": \"max\", \"field\": \"dateClean\", \"type\": \"temporal\"}, \"y\": {\"aggregate\": {\"argmax\": \"dateClean\"}, \"field\": \"value\", \"type\": \"quantitative\"}, \"text\": {\"aggregate\": {\"argmax\": \"dateClean\"}, \"field\": \"value\", \"type\": \"nominal\"}}, \"layer\": [{\"mark\": {\"type\": \"circle\", \"color\": \"#ff9a00\", \"size\": 100}}, {\"mark\": {\"type\": \"text\", \"align\": \"left\", \"dx\": 8, \"color\": \"#ff9a00\"}}]}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"height\": 300, \"width\": 300, \"title\": {\"text\": \"UK government - annual borrowing\", \"subtitle\": [\"PSNB, \\u00a3 billions. Actual and forecast. Source: ONS and IFS\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"#cbc7cf\", \"subtitleColor\": \"#cbc7cf\"}, \"config\": {\"background\": \"#122b39\", \"view\": {\"stroke\": \"transparent\"}}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/observatory/main/DATA.Crisis_C4b.csv\"}, \"layer\": [{\"mark\": {\"type\": \"bar\", \"size\": 8, \"color\": \"rgba(255,255,200, 0.8)\"}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false, \"labelColor\": \"#cbc7cf\"}}, \"y\": {\"field\": \"value1\", \"type\": \"quantitative\", \"axis\": {\"grid\": true, \"gridColor\": \"aliceblue\", \"gridWidth\": 0.5, \"gridDash\": [1, 1], \"labelColor\": \"#cbc7cf\"}, \"title\": null}}}, {\"mark\": {\"type\": \"bar\", \"size\": 8, \"color\": \"orange\"}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false}}, \"y\": {\"field\": \"value2\", \"type\": \"quantitative\", \"axis\": {\"grid\": true}, \"title\": null}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Sterling to Dollar exchange rate (1975-2022)\", \"subtitle\": [\"USD into GBP, BoE Series: XUDLUSS\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"#cbc7cf\", \"subtitleColor\": \"#cbc7cf\"}, \"width\": 280, \"height\": 300, \"config\": {\"background\": \"#122b39\", \"view\": {\"stroke\": \"transparent\"}}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/BoE_USD_GBP.json\", \"format\": {\"type\": \"json\"}}, \"transform\": [{\"calculate\": \"year(datum.Date)\", \"as\": \"year\"}, {\"filter\": \"datum.year>=minYear\"}, {\"filter\": \"datum.year<=maxYear\"}], \"params\": [{\"name\": \"minYear\", \"value\": 1975, \"bind\": {\"input\": \"range\", \"min\": 1975, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 1975, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"mark\": {\"type\": \"line\", \"color\": \"rgb(230, 50, 50)\", \"width\": 10, \"strokeWidth\": 2, \"opacity\": 1}, \"encoding\": {\"x\": {\"field\": \"Date\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false, \"labelColor\": \"#cbc7cf\"}}, \"y\": {\"field\": \"Value\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": [0.5, 2.5]}, \"axis\": {\"grid\": false, \"labelColor\": \"#cbc7cf\"}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Bar chart of UK debt outstanding. Demo of string and date functions\", \"title\": {\"text\": \"UK bonds - issue and duration dates\", \"subtitle\": [\"Source: DMO\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"view\": {\"stroke\": \"transparent\"}, \"height\": 300, \"width\": 300, \"transform\": [{\"calculate\": \"slice(datum.issueDate, -4)\", \"as\": \"Aissue\"}, {\"calculate\": \"slice(datum.redemptionDate, -4)\", \"as\": \"redemption\"}, {\"calculate\": \"datum.redemption - datum.Aissue\", \"as\": \"Bduration\"}, {\"calculate\": \"toNumber(datum.id)\", \"as\": \"id2\"}, {\"fold\": [\"Bduration\", \"Aissue\"], \"as\": [\"measure\", \"value\"]}], \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/GiltsInIssueClean.csv\"}, \"mark\": {\"type\": \"bar\", \"clip\": true, \"color\": \"red\"}, \"encoding\": {\"x\": {\"field\": \"value\", \"type\": \"quantitative\", \"scale\": {\"domain\": [1980, 2080]}, \"axis\": {\"grid\": false, \"format\": \"f\"}, \"title\": null}, \"y\": {\"field\": \"id2\", \"type\": \"ordinal\", \"sort\": \"descending\", \"title\": null, \"axis\": {\"labels\": false, \"ticks\": false}}, \"color\": {\"field\": \"measure\", \"scale\": {\"range\": [\"white\", \"red\"]}, \"legend\": null}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Bar chart of UK debt outstanding. Demo of string and date functions\", \"title\": {\"text\": \"UK debt - cumlative\", \"subtitle\": [\"Outstanding bonds by date of issuance. \\u00a3 billion\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"height\": 400, \"width\": 300, \"transform\": [{\"calculate\": \"datum.totalCumulative/1000\", \"as\": \"totalBillion\"}], \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/GiltsInIssueClean.csv\"}, \"mark\": {\"type\": \"point\", \"color\": \"red\"}, \"encoding\": {\"x\": {\"field\": \"issueYear\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"totalBillion\", \"type\": \"quantitative\", \"title\": null}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Bar chart of UK debt outstanding. Demo of string and date functions\", \"title\": {\"text\": \"UK debt - number of bonds, by size at issue\", \"subtitle\": [\"Source: DMO\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"height\": 300, \"width\": 300, \"transform\": [{\"calculate\": \"slice(datum.issueDate, -4)\", \"as\": \"issue\"}, {\"calculate\": \"slice(datum.redemptionDate, -4)\", \"as\": \"redemption\"}, {\"calculate\": \"datum.redemption - datum.issue\", \"as\": \"duration\"}], \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/GiltsInIssueClean.csv\"}, \"mark\": {\"type\": \"bar\", \"color\": \"red\"}, \"encoding\": {\"x\": {\"bin\": true, \"field\": \"issueAmount\", \"title\": \"Size of issuance, \\u00a3m\"}, \"y\": {\"aggregate\": \"count\", \"title\": \"Number of bonds\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Bar chart of UK debt outstanding. Demo of string and date functions\", \"title\": {\"text\": \"UK debt - by duration at issue\", \"subtitle\": [\"\\u00a3 millions. Source: DMO\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"height\": 300, \"width\": 290, \"transform\": [{\"calculate\": \"slice(datum.issueDate, -4)\", \"as\": \"issue\"}, {\"calculate\": \"slice(datum.redemptionDate, -4)\", \"as\": \"redemption\"}, {\"calculate\": \"datum.redemption - datum.issue\", \"as\": \"duration\"}], \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/GiltsInIssueClean.csv\"}, \"mark\": {\"type\": \"bar\", \"color\": \"red\"}, \"encoding\": {\"x\": {\"field\": \"duration\", \"type\": \"ordinal\", \"title\": null}, \"y\": {\"field\": \"issueAmount\", \"type\": \"quantitative\", \"aggregate\": \"sum\", \"title\": null}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Bar chart of UK debt outstanding. Demo of string and date functions\", \"title\": {\"text\": \"UK debt - by issue date\", \"subtitle\": [\"\\u00a3 millions. Source: DMO\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"height\": 300, \"width\": 290, \"transform\": [{\"calculate\": \"slice(datum.issueDate, -4)\", \"as\": \"temp1\"}, {\"calculate\": \"datetime(datum.temp1)\", \"as\": \"year\"}], \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/GiltsInIssueClean.csv\"}, \"mark\": {\"type\": \"bar\", \"color\": \"red\"}, \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false}}, \"y\": {\"field\": \"issueAmount\", \"type\": \"quantitative\", \"aggregate\": \"sum\", \"title\": null}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Bar chart of UK debt outstanding. Demo of string and date functions\", \"title\": {\"text\": \"UK debt - by redemption date\", \"subtitle\": [\"\\u00a3 millions. Source: DMO\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"height\": 300, \"width\": 290, \"transform\": [{\"calculate\": \"slice(datum.redemptionDate, -4)\", \"as\": \"temp1\"}, {\"calculate\": \"datetime(datum.temp1)\", \"as\": \"redemptionYear\"}], \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/GiltsInIssueClean.csv\"}, \"mark\": {\"type\": \"bar\", \"color\": \"red\"}, \"encoding\": {\"x\": {\"field\": \"redemptionYear\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false}}, \"y\": {\"field\": \"issueAmount\", \"type\": \"quantitative\", \"aggregate\": \"sum\", \"title\": null}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Donut chart of UK debt\", \"title\": {\"text\": \"UK debt - by type\", \"subtitle\": [\"Source: DMO\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"view\": {\"stroke\": \"transparent\"}, \"height\": 300, \"width\": 290, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/GiltsInIssueClean.csv\"}, \"mark\": {\"type\": \"arc\", \"innerRadius\": 100}, \"encoding\": {\"theta\": {\"field\": \"issueAmount\", \"type\": \"quantitative\"}, \"color\": {\"field\": \"giltType\", \"type\": \"nominal\", \"legend\": {\"title\": null, \"orient\": \"bottom\"}, \"scale\": {\"range\": [\"red\", \"purple\", \"orange\", \"green\"]}, \"sort\": {\"field\": \"name\", \"order\": \"descending\", \"op\": \"count\"}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"BoE balance sheet (2006-2022)\", \"subtitle\": [\"Reserve Balance liabilities (\\u00a3m). Source: BoE.\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"#cbc7cf\", \"subtitleColor\": \"#cbc7cf\"}, \"width\": 280, \"height\": 300, \"config\": {\"background\": \"#122b39\", \"view\": {\"stroke\": \"transparent\"}}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/BoEbalanceSheet.csv\"}, \"transform\": [{\"calculate\": \"year(datum.Date)\", \"as\": \"year\"}, {\"filter\": \"datum.year>=minYear\"}, {\"filter\": \"datum.year<=maxYear\"}], \"params\": [{\"name\": \"minYear\", \"value\": 2006, \"bind\": {\"input\": \"range\", \"min\": 2006, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 2006, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"mark\": {\"type\": \"line\", \"color\": \"#ff9a00\", \"interpolate\": \"step\", \"width\": 10, \"strokeWidth\": 2, \"opacity\": 1}, \"encoding\": {\"x\": {\"field\": \"Date\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false, \"labelColor\": \"#cbc7cf\"}}, \"y\": {\"field\": \"Value\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false, \"labelColor\": \"#cbc7cf\"}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Bank of England interest rates (1975-2022)\", \"subtitle\": [\"Bank Rate (%). Source: BoE.\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"#cbc7cf\", \"subtitleColor\": \"#cbc7cf\"}, \"width\": 280, \"height\": 300, \"config\": {\"background\": \"#122b39\", \"view\": {\"stroke\": \"transparent\"}}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/BankRate.csv\"}, \"transform\": [{\"calculate\": \"year(datum.date)\", \"as\": \"year\"}, {\"filter\": \"datum.year>=minYear\"}, {\"filter\": \"datum.year<=maxYear\"}], \"params\": [{\"name\": \"minYear\", \"value\": 2005, \"bind\": {\"input\": \"range\", \"min\": 1975, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 1975, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"mark\": {\"type\": \"line\", \"color\": \"#ff9a00\", \"interpolate\": \"step\", \"width\": 10, \"strokeWidth\": 2, \"opacity\": 1}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false, \"labelColor\": \"#cbc7cf\"}}, \"y\": {\"field\": \"BankRate\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false, \"labelColor\": \"#cbc7cf\"}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Foreign Direct Investment - inward\", \"subtitle\": [\"Total FDI in the UK (\\u00a3, billions). [ONS, PB-N2SA]\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 280, \"height\": 300, \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/n2sa/dataset/pb/data\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"datum.value/1000\", \"as\": \"billions\"}], \"mark\": {\"type\": \"line\", \"color\": \"#00BFFF\", \"strokeWidth\": 2}, \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"billions\", \"type\": \"quantitative\", \"title\": null}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/trade/data_tradeUKFrance.json\", \"format\": {\"type\": \"json\", \"property\": \"dataset\"}}, \"title\": {\"text\": \"Trade: UK and France\", \"subtitle\": [\"Value of trade, all commodities, $ billions\", \"Source: UN Comtrade\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"mark\": {\"type\": \"line\", \"color\": \"seagreen\", \"strokeWidth\": 2, \"opacity\": 1}, \"transform\": [{\"calculate\": \"datum.TradeValue/1000000000\", \"as\": \"tradeValBillions\"}], \"encoding\": {\"x\": {\"field\": \"periodDesc\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"tradeValBillions\", \"type\": \"quantitative\", \"title\": null}, \"color\": {\"field\": \"rgDesc\", \"type\": \"nominal\", \"title\": null}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"At risk: select firm size\", \"subtitle\": [\"Proportion of firms deemed 'At Risk' of failure\", \"Source: ONS (2021), Van Reenen and Lambert (2021)\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/productivity/atRiskFirmsBySizeLong.csv\", \"format\": {\"type\": \"csv\"}}, \"height\": 300, \"width\": 280, \"mark\": {\"type\": \"line\", \"point\": true}, \"selection\": {\"SIZE\": {\"type\": \"single\", \"fields\": [\"employees\"], \"bind\": {\"input\": \"select\", \"options\": [null, \"0-9\", \"10-49\", \"50-99\", \"100-249\", \"250+\", \"All firms\"], \"name\": \"Filter firm size: \"}}}, \"transform\": [{\"filter\": {\"selection\": \"SIZE\"}}], \"encoding\": {\"x\": {\"field\": \"dateUTC\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": true, \"format\": \"%\"}}, \"color\": {\"field\": \"employees\", \"type\": \"nominal\", \"scale\": {\"scheme\": \"set2\"}, \"title\": \"Employees:\", \"legend\": {\"orient\": \"top-right\", \"columns\": 1}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Back from the brink\", \"subtitle\": [\"Proportion of firms deemed 'At Risk' of failure\", \"Source: ONS (2021), Van Reenen and Lambert (2021)\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/productivity/atRiskFirmsBySizeLong.csv\", \"format\": {\"type\": \"csv\"}}, \"height\": 300, \"width\": 280, \"mark\": {\"type\": \"line\", \"point\": true}, \"selection\": {\"firmSize\": {\"type\": \"multi\", \"fields\": [\"employees\"], \"bind\": \"legend\"}}, \"encoding\": {\"x\": {\"field\": \"dateUTC\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": true, \"format\": \"%\"}}, \"color\": {\"field\": \"employees\", \"type\": \"nominal\", \"scale\": {\"scheme\": \"set1\"}, \"title\": \"Employees:\", \"legend\": {\"orient\": \"none\", \"legendX\": 200, \"legendY\": 10, \"columns\": 1, \"fillColor\": \"white\", \"cornerRadius\": 10, \"padding\": 5, \"strokeColor\": \"greenyellow\"}}, \"opacity\": {\"condition\": {\"selection\": \"firmSize\", \"value\": 1}, \"value\": 0.1}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"LINK FOR THE DATASET: https://www.ons.gov.uk/employmentandlabourmarket/peopleinwork/labourproductivity/timeseries/lzvb/prdy\", \"title\": {\"text\": \"Research and Development\", \"subtitle\": [\"R&D, Total Sector, and Manufacturing sector \\u00a3m\", \"ONS series: CNXV-DSG4\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}}, \"layer\": [{\"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/DSG4/dataset/cxnv/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"transform\": [{\"calculate\": \"substring(datum.quarter,1)*3-1\", \"as\": \"quarter_n\"}, {\"calculate\": \"join([datum.year, datum.quarter_n],['-'])\", \"as\": \"date2\"}, {\"calculate\": \"timeParse(datum.date2, '%Y-%m')\", \"as\": \"date3\"}, {\"filter\": \"datum.year>1990\"}], \"mark\": {\"type\": \"line\", \"color\": \"red\"}, \"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}, {\"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/EF9P/dataset/cxnv/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"transform\": [{\"calculate\": \"substring(datum.quarter,1)*3-1\", \"as\": \"quarter_n\"}, {\"calculate\": \"join([datum.year, datum.quarter_n],['-'])\", \"as\": \"date2\"}, {\"calculate\": \"timeParse(datum.date2, '%Y-%m')\", \"as\": \"date3\"}, {\"filter\": \"datum.year>1990\"}], \"mark\": {\"type\": \"line\", \"color\": \"blue\"}, \"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"LINK FOR THE DATASET: https://www.ons.gov.uk/employmentandlabourmarket/peopleinwork/labourproductivity/timeseries/lzvb/prdy\", \"title\": {\"text\": \"Research and Development\", \"subtitle\": [\"R&D, Total Sector, \\u00a3m\", \"ONS series: CNXV-EFU8\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}}, \"layer\": [{\"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/EFU8/dataset/cxnv/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"transform\": [{\"calculate\": \"substring(datum.quarter,1)*3-1\", \"as\": \"quarter_n\"}, {\"calculate\": \"join([datum.year, datum.quarter_n],['-'])\", \"as\": \"date2\"}, {\"calculate\": \"timeParse(datum.date2, '%Y-%m')\", \"as\": \"date3\"}, {\"filter\": \"datum.year>1990\"}], \"mark\": {\"type\": \"line\", \"color\": \"red\"}, \"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"LINK FOR THE DATASET: https://www.ons.gov.uk/employmentandlabourmarket/peopleinwork/labourproductivity/timeseries/lzvb/prdy\", \"title\": {\"text\": \"Business investment, UK\", \"subtitle\": [\"Chained volume measure (\\u00a3m); ONS series: CNXV-NPEN\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/npen/dataset/cxnv/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"transform\": [{\"calculate\": \"substring(datum.quarter,1)*3-1\", \"as\": \"quarter_n\"}, {\"calculate\": \"join([datum.year, datum.quarter_n],['-'])\", \"as\": \"date2\"}, {\"calculate\": \"timeParse(datum.date2, '%Y-%m')\", \"as\": \"date3\"}, {\"filter\": \"datum.year>1996\"}], \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}}, \"layer\": [{\"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"color\": \"red\"}}, {\"transform\": [{\"filter\": {\"selection\": \"hover\"}}], \"mark\": {\"type\": \"circle\", \"size\": 150, \"color\": \"red\"}}]}, {\"mark\": \"rule\", \"encoding\": {\"opacity\": {\"condition\": {\"value\": 0.3, \"selection\": \"hover\"}, \"value\": 0}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"format\": \"%b-%Y\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"format\": \",.0f\", \"title\": \"Value (\\u00a3m)\"}]}, \"selection\": {\"hover\": {\"type\": \"single\", \"fields\": [\"date3\"], \"nearest\": true, \"on\": \"mouseover\", \"empty\": \"none\", \"clear\": \"mouseout\"}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"LINK FOR THE DATASET: https://www.ons.gov.uk/employmentandlabourmarket/peopleinwork/labourproductivity/timeseries/lzvb/prdy\", \"title\": {\"text\": \"Total investment\", \"subtitle\": [\"Total Gross Fixed Capital Formation, \\u00a3m\", \"ONS series: CNXV-L62T\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/L62T/dataset/cxnv/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"transform\": [{\"calculate\": \"substring(datum.quarter,1)*3-1\", \"as\": \"quarter_n\"}, {\"calculate\": \"join([datum.year, datum.quarter_n],['-'])\", \"as\": \"date2\"}, {\"calculate\": \"timeParse(datum.date2, '%Y-%m')\", \"as\": \"date3\"}, {\"filter\": \"datum.year>1996\"}], \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}}, \"layer\": [{\"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"color\": \"red\"}}, {\"transform\": [{\"filter\": {\"selection\": \"hover\"}}], \"mark\": {\"type\": \"circle\", \"size\": 150, \"color\": \"red\"}}]}, {\"mark\": \"rule\", \"encoding\": {\"opacity\": {\"condition\": {\"value\": 0.3, \"selection\": \"hover\"}, \"value\": 0}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"format\": \"%b-%Y\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"format\": \",.0f\", \"title\": \"Value (\\u00a3m)\"}]}, \"selection\": {\"hover\": {\"type\": \"single\", \"fields\": [\"date3\"], \"nearest\": true, \"on\": \"mouseover\", \"empty\": \"none\", \"clear\": \"mouseout\"}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"LINK FOR THE DATASET: https://www.ons.gov.uk/economy/grossdomesticproductgdp/timeseries/npqx/ukea\", \"title\": {\"text\": \"Total investment\", \"subtitle\": [\"Total Gross Fixed Capital Formation, \\u00a3m\", \"ONS series: CNXV-NPQX\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/NPQX/dataset/cxnv/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"transform\": [{\"calculate\": \"substring(datum.quarter,1)*3-1\", \"as\": \"quarter_n\"}, {\"calculate\": \"join([datum.year, datum.quarter_n],['-'])\", \"as\": \"date2\"}, {\"calculate\": \"timeParse(datum.date2, '%Y-%m')\", \"as\": \"date3\"}, {\"filter\": \"datum.year>1996\"}], \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}}, \"layer\": [{\"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"color\": \"red\"}}, {\"transform\": [{\"filter\": {\"selection\": \"hover\"}}], \"mark\": {\"type\": \"circle\", \"size\": 150, \"color\": \"red\"}}]}, {\"mark\": \"rule\", \"encoding\": {\"opacity\": {\"condition\": {\"value\": 0.3, \"selection\": \"hover\"}, \"value\": 0}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"format\": \"%b-%Y\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"format\": \",.0f\", \"title\": \"Value (\\u00a3m)\"}]}, \"selection\": {\"hover\": {\"type\": \"single\", \"fields\": [\"date3\"], \"nearest\": true, \"on\": \"mouseover\", \"empty\": \"none\", \"clear\": \"mouseout\"}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Productivity, OECD countries\", \"subtitle\": [\"GDP per hour worked. US dollars, 1970-2020. Source: OECD\", \"Legend: UK = black, Ireland = green\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/productivity/data_GDPperHourOECD_All.csv\", \"format\": {\"type\": \"csv\"}}, \"height\": 300, \"width\": 300, \"mark\": {\"type\": \"line\", \"point\": false}, \"encoding\": {\"x\": {\"field\": \"TIME\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false}}, \"y\": {\"field\": \"Value\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false}}, \"color\": {\"field\": \"LOCATION\", \"type\": \"nominal\", \"scale\": {\"range\": [\"lightgrey\", \"lightgrey\", \"lightgrey\", \"lightgrey\", \"lightgrey\", \"lightgrey\", \"lightgrey\", \"lightgrey\", \"lightgrey\", \"lightgrey\", \"lightgrey\", \"lightgrey\", \"lightgrey\", \"lightgrey\", \"lightgrey\", \"black\", \"lightgrey\", \"lightgrey\", \"green\", \"lightgrey\", \"lightgrey\", \"lightgrey\", \"lightgrey\", \"lightgrey\", \"lightgrey\", \"lightgrey\", \"lightgrey\", \"lightgrey\", \"lightgrey\", \"lightgrey\"]}, \"title\": null, \"legend\": null}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Productivity, G7\", \"subtitle\": [\"GDP per hour worked. US dollars, 1970-2020. Source: OECD\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/productivity/data_GDPperHourOECD.csv\", \"format\": {\"type\": \"csv\"}}, \"transform\": [{\"filter\": \"datum.LOCATION!='OECD'\"}], \"height\": 300, \"width\": 300, \"mark\": {\"type\": \"line\", \"point\": false}, \"encoding\": {\"x\": {\"field\": \"TIME\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false}}, \"y\": {\"field\": \"Value\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false}}, \"color\": {\"field\": \"LOCATION\", \"type\": \"nominal\", \"scale\": {\"range\": [\"yellow\", \"orange\", \"lightgrey\", \"black\", \"lightblue\", \"pink\", \"lightgreen\"]}, \"title\": null, \"legend\": {\"orient\": \"top-left\"}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"LINK FOR THE DATASET: https://www.ons.gov.uk/economy/grossvalueaddedgva/timeseries/abml/qna\", \"title\": {\"text\": \"Output\", \"subtitle\": [\"Gross Value Added (Average), \\u00a3billions, quarterly\", \" ONS-series: QNA-ABML\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/abml/dataset/qna/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"transform\": [{\"calculate\": \"substring(datum.quarter,1)*3-1\", \"as\": \"quarter_n\"}, {\"calculate\": \"join([datum.year, datum.quarter_n],['-'])\", \"as\": \"date2\"}, {\"calculate\": \"timeParse(datum.date2, '%Y-%m')\", \"as\": \"date3\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"value_b\"}], \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}}, \"layer\": [{\"encoding\": {\"y\": {\"field\": \"value_b\", \"type\": \"quantitative\", \"title\": null}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"color\": \"red\"}}, {\"transform\": [{\"filter\": {\"selection\": \"hover\"}}], \"mark\": {\"type\": \"circle\", \"size\": 150, \"color\": \"red\"}}]}, {\"mark\": \"rule\", \"encoding\": {\"opacity\": {\"condition\": {\"value\": 0.3, \"selection\": \"hover\"}, \"value\": 0}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"format\": \"%b-%Y\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"format\": \",.0f\", \"title\": \"Index\"}]}, \"selection\": {\"hover\": {\"type\": \"single\", \"fields\": [\"date3\"], \"nearest\": true, \"on\": \"mouseover\", \"empty\": \"none\", \"clear\": \"mouseout\"}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"LINK FOR THE DATASET: https://www.ons.gov.uk/employmentandlabourmarket/peopleinwork/labourproductivity/timeseries/lzvb/prdy\", \"title\": {\"text\": \"Hours worked\", \"subtitle\": [\"Total actual weekly hours worked (millions)\", \"Seasonally adjusted; ONS series: LMS-YBUS\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/ybus/dataset/lms/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"transform\": [{\"calculate\": \"substring(datum.quarter,1)*3-1\", \"as\": \"quarter_n\"}, {\"calculate\": \"join([datum.year, datum.quarter_n],['-'])\", \"as\": \"date2\"}, {\"calculate\": \"timeParse(datum.date2, '%Y-%m')\", \"as\": \"date3\"}], \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}}, \"layer\": [{\"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": [700, 1100]}}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"color\": \"red\"}}, {\"transform\": [{\"filter\": {\"selection\": \"hover\"}}], \"mark\": {\"type\": \"circle\", \"size\": 150, \"color\": \"red\"}}]}, {\"mark\": \"rule\", \"encoding\": {\"opacity\": {\"condition\": {\"value\": 0.3, \"selection\": \"hover\"}, \"value\": 0}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"format\": \"%b-%Y\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"format\": \",.0f\", \"title\": \"Index\"}]}, \"selection\": {\"hover\": {\"type\": \"single\", \"fields\": [\"date3\"], \"nearest\": true, \"on\": \"mouseover\", \"empty\": \"none\", \"clear\": \"mouseout\"}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"LINK FOR THE DATASET: https://www.ons.gov.uk/employmentandlabourmarket/peopleinwork/labourproductivity/timeseries/lzvb/prdy\", \"title\": {\"text\": \"Productivity - workers\", \"subtitle\": [\"Output per worker, whole economy\", \"Index, 2019=100; ONS-series: PRDY-A4YM\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/a4ym/dataset/prdy/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"transform\": [{\"calculate\": \"substring(datum.quarter,1)*3-1\", \"as\": \"quarter_n\"}, {\"calculate\": \"join([datum.year, datum.quarter_n],['-'])\", \"as\": \"date2\"}, {\"calculate\": \"timeParse(datum.date2, '%Y-%m')\", \"as\": \"date3\"}], \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}}, \"layer\": [{\"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"color\": \"red\"}}, {\"transform\": [{\"filter\": {\"selection\": \"hover\"}}], \"mark\": {\"type\": \"circle\", \"size\": 150, \"color\": \"red\"}}]}, {\"mark\": \"rule\", \"encoding\": {\"opacity\": {\"condition\": {\"value\": 0.3, \"selection\": \"hover\"}, \"value\": 0}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"format\": \"%b-%Y\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"format\": \",.0f\", \"title\": \"Index\"}]}, \"selection\": {\"hover\": {\"type\": \"single\", \"fields\": [\"date3\"], \"nearest\": true, \"on\": \"mouseover\", \"empty\": \"none\", \"clear\": \"mouseout\"}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"LINK FOR THE DATASET: https://www.ons.gov.uk/employmentandlabourmarket/peopleinwork/labourproductivity/timeseries/lzvb/prdy\", \"title\": {\"text\": \"GFCF - Government, UK\", \"subtitle\": [\"Chained volume measure (\\u00a3m); ONS series: CNXV-EQDN\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/eqdn/dataset/cxnv/data\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"title\": null}}, \"layer\": [{\"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"color\": \"red\"}}, {\"transform\": [{\"filter\": {\"selection\": \"hover\"}}], \"mark\": {\"type\": \"circle\", \"size\": 150, \"color\": \"red\"}}]}, {\"mark\": \"rule\", \"encoding\": {\"opacity\": {\"condition\": {\"value\": 0.3, \"selection\": \"hover\"}, \"value\": 0}, \"tooltip\": [{\"field\": \"date\", \"type\": \"temporal\", \"format\": \"%Y\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"format\": \",.0f\", \"title\": \"Value (\\u00a3m)\"}]}, \"selection\": {\"hover\": {\"type\": \"single\", \"fields\": [\"date\"], \"nearest\": true, \"on\": \"mouseover\", \"empty\": \"none\", \"clear\": \"mouseout\"}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"LINK FOR THE DATASET: https://www.ons.gov.uk/employmentandlabourmarket/peopleinwork/labourproductivity/timeseries/lzvb/prdy\", \"title\": {\"text\": \"Productivity, UK\", \"subtitle\": [\"Output per hour, whole economy\", \"Index, 2019=100; Source-series: ONS-LZVB\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/lzvb/dataset/prdy/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"transform\": [{\"calculate\": \"substring(datum.quarter,1)*3-1\", \"as\": \"quarter_n\"}, {\"calculate\": \"join([datum.year, datum.quarter_n],['-'])\", \"as\": \"date2\"}, {\"calculate\": \"timeParse(datum.date2, '%Y-%m')\", \"as\": \"date3\"}], \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}}, \"layer\": [{\"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": [40, 120]}}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"color\": \"red\"}}, {\"transform\": [{\"filter\": {\"selection\": \"hover\"}}], \"mark\": {\"type\": \"circle\", \"size\": 150, \"color\": \"red\"}}]}, {\"mark\": \"rule\", \"encoding\": {\"opacity\": {\"condition\": {\"value\": 0.3, \"selection\": \"hover\"}, \"value\": 0}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"format\": \"%b-%Y\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"format\": \",.0f\", \"title\": \"Index\"}]}, \"selection\": {\"hover\": {\"type\": \"single\", \"fields\": [\"date3\"], \"nearest\": true, \"on\": \"mouseover\", \"empty\": \"none\", \"clear\": \"mouseout\"}}}, {\"data\": {\"values\": [{\"y\": \"53\", \"x\": \"1980\"}, {\"y\": \"116\", \"x\": \"2021\"}]}, \"mark\": {\"type\": \"line\", \"color\": \"blue\", \"strokeDash\": [1, 3]}, \"encoding\": {\"x\": {\"field\": \"x\", \"type\": \"temporal\"}, \"y\": {\"field\": \"y\", \"type\": \"quantitative\"}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"x\", \"title\": {\"text\": \"Software\", \"subtitle\": [\"Total (blue) and puchased (red), Total Sector, \\u00a3m\", \"ONS series: CNXV-DS6X, CNXV-EF9B\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}}, \"layer\": [{\"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/DS6x/dataset/cxnv/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"transform\": [{\"calculate\": \"substring(datum.quarter,1)*3-1\", \"as\": \"quarter_n\"}, {\"calculate\": \"join([datum.year, datum.quarter_n],['-'])\", \"as\": \"date2\"}, {\"calculate\": \"timeParse(datum.date2, '%Y-%m')\", \"as\": \"date3\"}, {\"filter\": \"datum.year>1990\"}], \"mark\": {\"type\": \"line\", \"color\": \"red\"}, \"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}, {\"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/ds8c/dataset/cxnv/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"transform\": [{\"calculate\": \"substring(datum.quarter,1)*3-1\", \"as\": \"quarter_n\"}, {\"calculate\": \"join([datum.year, datum.quarter_n],['-'])\", \"as\": \"date2\"}, {\"calculate\": \"timeParse(datum.date2, '%Y-%m')\", \"as\": \"date3\"}, {\"filter\": \"datum.year>1990\"}], \"mark\": {\"type\": \"line\", \"color\": \"blue\"}, \"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"x\", \"title\": {\"text\": \"Software\", \"subtitle\": [\"Total Software, \\u00a3m\", \"ONS series: CNXV-EF3C\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}}, \"layer\": [{\"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/ef3c/dataset/cxnv/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"transform\": [{\"calculate\": \"substring(datum.quarter,1)*3-1\", \"as\": \"quarter_n\"}, {\"calculate\": \"join([datum.year, datum.quarter_n],['-'])\", \"as\": \"date2\"}, {\"calculate\": \"timeParse(datum.date2, '%Y-%m')\", \"as\": \"date3\"}, {\"filter\": \"datum.year>1990\"}], \"mark\": {\"type\": \"line\", \"color\": \"red\"}, \"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"LINK FOR THE DATASET: https://www.ons.gov.uk/employmentandlabourmarket/peopleinwork/labourproductivity/timeseries/lzvb/prdy\", \"title\": {\"text\": \"Productivity, UK\", \"subtitle\": [\"Output per hour, whole economy\", \"Index, 2019=100; Source-series: ONS-LZVB\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/lzvb/dataset/prdy/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"transform\": [{\"calculate\": \"substring(datum.quarter,1)*3-1\", \"as\": \"quarter_n\"}, {\"calculate\": \"join([datum.year, datum.quarter_n],['-'])\", \"as\": \"date2\"}, {\"calculate\": \"timeParse(datum.date2, '%Y-%m')\", \"as\": \"date3\"}], \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}}, \"layer\": [{\"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": [40, 110]}}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"color\": \"red\"}}, {\"transform\": [{\"filter\": {\"selection\": \"hover\"}}], \"mark\": {\"type\": \"circle\", \"size\": 150, \"color\": \"red\"}}]}, {\"mark\": \"rule\", \"encoding\": {\"opacity\": {\"condition\": {\"value\": 0.3, \"selection\": \"hover\"}, \"value\": 0}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"format\": \"%b-%Y\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"format\": \",.0f\", \"title\": \"Index\"}]}, \"selection\": {\"hover\": {\"type\": \"single\", \"fields\": [\"date3\"], \"nearest\": true, \"on\": \"mouseover\", \"empty\": \"none\", \"clear\": \"mouseout\"}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Filter that gets rid of a value for IT that looks like an outlier.\", \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/productivity/BSD_Industries.csv\"}, \"transform\": [{\"fold\": [\"entryRate\"], \"as\": [\"metric\", \"value\"]}, {\"calculate\": \"{'entryRate':'Entry'}[datum.metric]\", \"as\": \"metricClean\"}, {\"filter\": \"datum.value<.2\"}], \"height\": 75, \"width\": 100, \"mark\": {\"type\": \"line\", \"strokeWidth\": 1, \"point\": false}, \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false, \"format\": \"d\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": [0, 0.2]}, \"axis\": {\"grid\": false, \"format\": \"%\"}}, \"facet\": {\"field\": \"Industry\", \"type\": \"nominal\", \"title\": null, \"columns\": 4}, \"color\": {\"field\": \"metricClean\", \"title\": null, \"scale\": {\"range\": [\"blue\", \"orange\"]}, \"legend\": null}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"A calculate that takes the messy names in the field, metric, and creates a new field, metricClean, where the names are nicer.\", \"title\": {\"text\": \"Productivity in 2020 - distribution\", \"subtitle\": [\"Estimated distribution, turnover \\u00a3k per employee\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/productivity/BSD_modelPercentiles.csv\"}, \"height\": 300, \"width\": 450, \"mark\": {\"type\": \"circle\", \"color\": \"rgb(0,29,159)\", \"size\": 90}, \"transform\": [{\"filter\": \"datum.modelValue<300\"}], \"encoding\": {\"x\": {\"field\": \"Percentile\", \"type\": \"quantitative\", \"title\": \"Percentile\", \"axis\": {\"grid\": false, \"format\": \"d\"}}, \"y\": {\"field\": \"modelValue\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": [0, 260]}, \"axis\": {\"grid\": false, \"format\": \"d\"}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"A calculate that takes the messy names in the field, metric, and creates a new field, metricClean, where the names are nicer.\", \"title\": {\"text\": \"Job reallocation, 1997-2020\", \"subtitle\": [\"Jobs created and destroyed, productivity weighted.\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/productivity/BSD_Annual.csv\"}, \"transform\": [{\"fold\": [\"entryReallocate\", \"growReallocate\", \"exitReallocate\", \"shrinkReallocate\"], \"as\": [\"metric\", \"value\"]}, {\"calculate\": \"{'entryReallocate':'Entry', 'exitReallocate': 'Exit','growReallocate':'Hires', 'shrinkReallocate': 'Fires'}[datum.metric]\", \"as\": \"metricClean\"}], \"height\": 300, \"width\": 450, \"mark\": {\"type\": \"bar\", \"width\": 15}, \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false, \"format\": \"d\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"stack\": true, \"title\": null, \"axis\": {\"grid\": false, \"format\": \"%\"}}, \"color\": {\"field\": \"metricClean\", \"title\": null, \"scale\": {\"scheme\": \"inferno\"}, \"legend\": {\"orient\": \"bottom\"}}}, \"resolve\": {\"axis\": {\"y\": \"independent\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"XYZtitle\": {\"text\": \"Hiring and Firing, by Age and Size\", \"subtitle\": [\"Job creation and destruction per firm, age-size brackets.\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/productivity/BSD_AgeSize.csv\"}, \"transform\": [{\"fold\": [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\"], \"as\": [\"size\", \"value\"]}, {\"filter\": \"datum.value>0\"}, {\"filter\": \"datum.Measure!='RLP'\"}, {\"filter\": \"datum.Measure!='JobCreationperJob'\"}, {\"calculate\": \"{'JobCreationPerFirm':'A. Hires', 'JobDestructionPerFirm':'B. Fires'}[datum.Measure]\", \"as\": \"name\"}], \"height\": 300, \"width\": 225, \"mark\": {\"type\": \"line\", \"strokeWidth\": 1, \"point\": true}, \"encoding\": {\"x\": {\"field\": \"Age\", \"type\": \"quantitative\", \"title\": \"Age\", \"axis\": {\"grid\": false, \"format\": \".2\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": [0, 3]}, \"axis\": {\"grid\": false, \"format\": \".3\"}}, \"color\": {\"field\": \"size\", \"title\": \"Size\", \"scale\": {\"scheme\": \"inferno\"}, \"legend\": {\"orient\": \"bottom\", \"columns\": 9}}, \"facet\": {\"field\": \"name\", \"columns\": 2, \"title\": null}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"A calculate that takes the messy names in the field, metric, and creates a new field, metricClean, where the names are nicer.\", \"XYZtitle\": {\"text\": \"Productivity distribution, by firm size\", \"subtitle\": [\"Estimates of porductivity distribution, firms with 1-25 employees\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/productivity/BSD_SizeRLP.csv\"}, \"transform\": [{\"fold\": [\"rlp10\", \"rlp25\", \"rlp50\", \"rlp75\", \"rlp90\"], \"as\": [\"metric\", \"value\"]}, {\"calculate\": \"{'rlp10':'10th', 'rlp25':'25th', 'rlp50':'50th', 'rlp75':'75th', 'rlp90':'90th'}[datum.metric]\", \"as\": \"metricClean\"}], \"height\": 300, \"width\": 200, \"mark\": {\"type\": \"point\"}, \"encoding\": {\"x\": {\"field\": \"Size\", \"type\": \"quantitative\", \"title\": \"Employees\", \"axis\": {\"grid\": false, \"format\": \"d\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false, \"format\": \"d\"}}, \"facet\": {\"field\": \"Year\", \"type\": \"nominal\", \"title\": null, \"columns\": 4}, \"color\": {\"field\": \"metricClean\", \"title\": \"Percentiles (estimated)\", \"scale\": {\"scheme\": \"inferno\"}, \"legend\": {\"orient\": \"bottom\", \"columns\": 5}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"XYZtitle\": {\"text\": \"Age, Size and Productivity\", \"subtitle\": [\"RLP for firms by age and size (n employees).\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/productivity/BSD_AgeSize.csv\"}, \"transform\": [{\"fold\": [\"1\", \"3\", \"5\", \"7\", \"9\"], \"as\": [\"size\", \"value\"]}, {\"filter\": \"datum.value>0\"}, {\"filter\": \"datum.Measure=='RLP'\"}], \"height\": 300, \"width\": 450, \"mark\": {\"type\": \"line\", \"strokeWidth\": 1, \"point\": true}, \"encoding\": {\"x\": {\"field\": \"Age\", \"type\": \"quantitative\", \"title\": \"Age\", \"axis\": {\"grid\": false, \"format\": \".2\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Productivity\", \"axis\": {\"grid\": false, \"format\": \".3\"}}, \"color\": {\"field\": \"size\", \"title\": \"Size\", \"scale\": {\"scheme\": \"viridis\"}, \"legend\": {\"orient\": \"top-left\", \"columns\": 1}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"XYZtitle\": {\"text\": \"Entry and exit rates\", \"subtitle\": [\"Firm entry and exit as % of active firms. Source: BSD\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/productivity/BSD_Annual.csv\"}, \"transform\": [{\"fold\": [\"Entry rate\", \"Exit Rate\"], \"as\": [\"metric\", \"value\"]}, {\"filter\": {\"field\": \"year\", \"gt\": 1997}}], \"height\": 300, \"width\": 450, \"mark\": {\"type\": \"line\", \"strokeWidth\": 1, \"point\": true}, \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false, \"format\": \"\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false, \"format\": \"%\"}}, \"color\": {\"field\": \"metric\", \"title\": null, \"scale\": {\"range\": [\"blue\", \"orange\"]}, \"legend\": {\"orient\": \"bottom-left\"}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"A filter which gets rid of 1997 data as no data for Trend here\", \"XYZtitle\": {\"text\": \"Productivity - actual and trend\", \"subtitle\": [\"Revenue labour productivity (\\u00a3k per employee). Source: BSD\", \"Trend line is based on applying pre-2009 avg annual growth rate\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/productivity/BSD_Annual.csv\"}, \"transform\": [{\"fold\": [\"RLP hypotetical\", \"RLP\"], \"as\": [\"metric\", \"value\"]}, {\"calculate\": \"{'RLP': 'RLP - Actual', 'RLP hypotetical': 'RLP - Trend'}[datum.metric]\", \"as\": \"metricClean\"}, {\"filter\": {\"field\": \"year\", \"gt\": 1997}}], \"height\": 300, \"width\": 450, \"mark\": {\"type\": \"line\", \"strokeWidth\": 1, \"point\": true}, \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false, \"format\": \"\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": [50, 130]}, \"axis\": {\"grid\": false, \"format\": \"d\"}}, \"color\": {\"field\": \"metricClean\", \"title\": null, \"scale\": {\"range\": [\"blue\", \"orange\"]}, \"legend\": {\"orient\": \"top-left\"}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"A calculate that takes the messy names in the field, metric, and creates a new field, metricClean, where the names are nicer.\", \"XYZtitle\": {\"text\": \"Job reallocation - major industry groups\", \"subtitle\": [\"Jobs created and destroyed, productivity weighted.\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/productivity/BSD_Industries.csv\"}, \"transform\": [{\"fold\": [\"entryReallocate\", \"growReallocate\", \"exitReallocate\", \"shrinkReallocate\"], \"as\": [\"metric\", \"value\"]}, {\"calculate\": \"{'entryReallocate':'Entry', 'exitReallocate': 'Exit','growReallocate':'Hires', 'shrinkReallocate': 'Fires'}[datum.metric]\", \"as\": \"metricClean\"}], \"height\": 75, \"width\": 100, \"mark\": {\"type\": \"bar\", \"strokeWidth\": 1, \"point\": false}, \"resolve\": {\"axis\": {\"y\": \"independent\"}}, \"encoding\": {\"x\": {\"field\": \"period2\", \"type\": \"ordinal\", \"title\": null, \"axis\": {\"grid\": false}}, \"y\": {\"field\": \"value\", \"aggregate\": \"mean\", \"type\": \"quantitative\", \"stack\": true, \"title\": null, \"axis\": {\"grid\": false, \"format\": \"%\"}}, \"facet\": {\"field\": \"Industry\", \"type\": \"nominal\", \"title\": null, \"columns\": 4}, \"color\": {\"field\": \"metricClean\", \"title\": null, \"scale\": {\"scheme\": \"inferno\"}, \"legend\": {\"orient\": \"bottom\"}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"XYZtitle\": {\"text\": \"Cohort effects\", \"subtitle\": [\"Firm entry and exit as % of active firms. Source: BSD\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/productivity/BSD_Cohorts.csv\"}, \"transform\": [{\"fold\": [\"c2000\", \"c2005\", \"c2007\", \"c2009\", \"c2012\", \"c2013\"], \"as\": [\"metric\", \"value\"]}, {\"filter\": \"datum.value>0\"}], \"height\": 300, \"width\": 450, \"mark\": {\"type\": \"line\", \"strokeWidth\": 1, \"point\": true}, \"encoding\": {\"x\": {\"field\": \"Age\", \"type\": \"quantitative\", \"title\": \"Age\", \"axis\": {\"grid\": false, \"format\": \"\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Share\", \"axis\": {\"grid\": false, \"format\": \"%\"}}, \"color\": {\"field\": \"metric\", \"title\": \"Birth year\", \"scale\": {\"scheme\": \"turbo\"}, \"legend\": {\"orient\": \"bottom-right\", \"columns\": 2}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"A calculate that takes the messy names in the field, metric, and creates a new field, metricClean, where the names are nicer.\", \"XYZtitle\": {\"text\": \"Productivity: median firm, by size\", \"subtitle\": [\"Estimated median, turnover \\u00a3k per employee\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/productivity/BSD_SizeRLP.csv\"}, \"transform\": [{\"fold\": [\"rlp50\"], \"as\": [\"metric\", \"value\"]}], \"height\": 300, \"width\": 450, \"mark\": {\"type\": \"point\"}, \"encoding\": {\"x\": {\"field\": \"Size\", \"type\": \"quantitative\", \"title\": \"Employees\", \"axis\": {\"grid\": false, \"format\": \"d\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false, \"format\": \"d\"}}, \"color\": {\"field\": \"Year\", \"title\": null, \"scale\": {\"scheme\": \"inferno\"}, \"legend\": {\"orient\": \"bottom-right\", \"columns\": 5}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"LINK FOR THE DATASET: https://www.ons.gov.uk/employmentandlabourmarket/peopleinwork/labourproductivity/timeseries/lzvb/prdy\", \"XYZtitle\": {\"text\": \"Productivity, UK\", \"subtitle\": [\"Output per hour, whole economy\", \"Index, 2019=100; Source-series: ONS-LZVB\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 450, \"height\": 300, \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/lzvb/dataset/prdy/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"transform\": [{\"calculate\": \"substring(datum.quarter,1)*3-1\", \"as\": \"quarter_n\"}, {\"calculate\": \"join([datum.year, datum.quarter_n],['-'])\", \"as\": \"date2\"}, {\"calculate\": \"timeParse(datum.date2, '%Y-%m')\", \"as\": \"date3\"}], \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}}, \"layer\": [{\"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": [40, 120]}}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"color\": \"red\"}}, {\"transform\": [{\"filter\": {\"selection\": \"hover\"}}], \"mark\": {\"type\": \"circle\", \"size\": 150, \"color\": \"red\"}}]}, {\"mark\": \"rule\", \"encoding\": {\"opacity\": {\"condition\": {\"value\": 0.3, \"selection\": \"hover\"}, \"value\": 0}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"format\": \"%b-%Y\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"format\": \",.0f\", \"title\": \"Index\"}]}, \"selection\": {\"hover\": {\"type\": \"single\", \"fields\": [\"date3\"], \"nearest\": true, \"on\": \"mouseover\", \"empty\": \"none\", \"clear\": \"mouseout\"}}}, {\"data\": {\"values\": [{\"y\": \"53\", \"x\": \"1980\"}, {\"y\": \"116\", \"x\": \"2021\"}]}, \"mark\": {\"type\": \"line\", \"color\": \"blue\", \"strokeDash\": [1, 3]}, \"encoding\": {\"x\": {\"field\": \"x\", \"type\": \"temporal\"}, \"y\": {\"field\": \"y\", \"type\": \"quantitative\"}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"A calculate that takes the messy names in the field, metric, and creates a new field, metricClean, where the names are nicer.\", \"title\": {\"text\": \"Productivity distribution, by firm size\", \"subtitle\": [\"Estimates of porductivity distribution, firms with 1-25 employees\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/productivity/BSD_SizeRLP.csv\"}, \"transform\": [{\"fold\": [\"rlp10\", \"rlp25\", \"rlp50\", \"rlp75\", \"rlp90\"], \"as\": [\"metric\", \"value\"]}, {\"calculate\": \"{'rlp10':'10th', 'rlp25':'25th', 'rlp50':'50th', 'rlp75':'75th', 'rlp90':'90th'}[datum.metric]\", \"as\": \"metricClean\"}], \"height\": 300, \"width\": 200, \"mark\": {\"type\": \"point\"}, \"encoding\": {\"x\": {\"field\": \"Size\", \"type\": \"quantitative\", \"title\": \"Employees\", \"axis\": {\"grid\": false, \"format\": \"d\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false, \"format\": \"d\"}}, \"facet\": {\"field\": \"Year\", \"type\": \"nominal\", \"title\": null, \"columns\": 4}, \"color\": {\"field\": \"metricClean\", \"title\": \"Percentiles (estimated)\", \"scale\": {\"scheme\": \"inferno\"}, \"legend\": {\"orient\": \"bottom\", \"columns\": 5}}}}"