text
stringlengths
331
391k
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"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\": 300, \"mark\": {\"type\": \"line\", \"strokeWidth\": 1, \"point\": true}, \"encoding\": {\"x\": {\"field\": \"Age\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false, \"format\": \"\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"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\", \"title\": {\"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\": 300, \"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\", \"title\": {\"text\": \"Hiring propensity: Age vs Size\", \"subtitle\": [\"Job creation per employee, 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\": {\"field\": \"Measure\", \"oneOf\": [\"JobCreationperJob\"]}}, {\"calculate\": \"{'JobCreationPerFirm':'A. Hires', 'JobDestructionPerFirm':'B. Fires', 'JobCreationperJob':'C.Hires per employee'}[datum.Measure]\", \"as\": \"name\"}], \"height\": 300, \"width\": 300, \"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, 0.35]}, \"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\", \"title\": {\"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'\"}, {\"calculate\": \"{'JobCreationPerFirm':'A. Hires', 'JobDestructionPerFirm':'B. Fires'}[datum.Measure]\", \"as\": \"name\"}], \"height\": 300, \"width\": 200, \"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\": \"Filter that gets rid of a value for IT that looks like an outlier.\", \"title\": {\"text\": \"Entry rates - major industry groups\", \"subtitle\": [\"Ratio of entrants to total firms\", \"\"], \"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\": [\"entryRate\"], \"as\": [\"metric\", \"value\"]}, {\"calculate\": \"{'entryRate':'Entry'}[datum.metric]\", \"as\": \"metricClean\"}, {\"filter\": \"datum.value<.2\"}], \"height\": 75, \"width\": 75, \"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\": \"Entry and Exit rates - major industry groups\", \"subtitle\": [\"Ratio of entrants and exiters to total firms\", \"\"], \"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\": [\"entryRate\", \"exitRate\"], \"as\": [\"metric\", \"value\"]}, {\"calculate\": \"{'entryRate':'Entry', 'exitRate': 'Exit'}[datum.metric]\", \"as\": \"metricClean\"}], \"height\": 75, \"width\": 75, \"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.3]}, \"axis\": {\"grid\": false, \"format\": \"%\"}}, \"facet\": {\"field\": \"Industry\", \"type\": \"nominal\", \"title\": null, \"columns\": 4}, \"color\": {\"field\": \"metricClean\", \"title\": null, \"scale\": {\"range\": [\"blue\", \"orange\"]}, \"legend\": {\"orient\": \"bottom\", \"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.\", \"title\": {\"text\": \"Age - various measures\", \"subtitle\": [\"Mean, Median* and weighted ages of UK firms\", \"\"], \"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\": [\"Mean\", \"Mean_emplWeight\", \"Mean_turnWeight\", \"Central\"], \"as\": [\"metric\", \"value\"]}, {\"calculate\": \"{'Mean_turnWeight':'Weighted (Turnover)','Mean': 'Mean', 'Mean_emplWeight': 'Weighted (Employment)', 'Central': 'Median (*estimated)'}[datum.metric]\", \"as\": \"metricClean\"}], \"height\": 300, \"width\": 300, \"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\": [0, 30]}, \"axis\": {\"grid\": false, \"format\": \"d\"}}, \"color\": {\"field\": \"metricClean\", \"title\": null, \"scale\": {\"range\": [\"blue\", \"orange\", \"green\", \"red\"]}, \"legend\": {\"orient\": \"bottom-left\", \"columns\": 2}}}}"
"{\"$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\", \"title\": {\"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\": 300, \"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.\", \"title\": {\"text\": \"Job reallocation, 1997-2020\", \"subtitle\": [\"Jobs created and destroyed - three measures\", \"\"], \"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\": [\"totalReallocateJobsNet\", \"totalReallocateJobs\", \"totalReallocateRLPJobs\"], \"as\": [\"metric\", \"value\"]}, {\"calculate\": \"{'totalReallocateJobsNet':'Net employment growth', 'totalReallocateJobs': 'Jobs','totalReallocateRLPJobs':'Productivity weights'}[datum.metric]\", \"as\": \"metricClean\"}], \"height\": 300, \"width\": 450, \"mark\": {\"type\": \"line\", \"width\": 15}, \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false, \"format\": \"d\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"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\", \"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, as a proportion of all jobs\", \"\"], \"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\": [\"entryReallocateJobs\", \"growReallocateJobs\", \"exitReallocateJobs\", \"shrinkReallocateJobs\"], \"as\": [\"metric\", \"value\"]}, {\"calculate\": \"{'entryReallocateJobs':'Entry', 'exitReallocateJobs': 'Exit','growReallocateJobs':'Hires', 'shrinkReallocateJobs': '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\", \"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 spread / shocks\", \"subtitle\": [\"Standard deviation of firm-level productivity\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/productivity/BSD_IndustriesRLP.csv\"}, \"transform\": [{\"fold\": [\"lRLP\"], \"as\": [\"metric\", \"value\"]}, {\"calculate\": \"{'entryRate':'Entry', 'exitRate': 'Exit'}[datum.metric]\", \"as\": \"metricClean\"}], \"height\": 75, \"width\": 75, \"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, \"axis\": {\"grid\": false, \"format\": \"2\"}}, \"facet\": {\"field\": \"Industry\", \"type\": \"nominal\", \"title\": null, \"columns\": 4}, \"color\": {\"field\": \"metricClean\", \"title\": null, \"scale\": {\"range\": [\"green\"]}, \"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\": 300, \"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 - 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\": 75, \"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\", \"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 - 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\": 75, \"mark\": {\"type\": \"bar\", \"strokeWidth\": 1, \"point\": false}, \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false, \"format\": \"d\"}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"stack\": true, \"title\": null, \"scale\": {\"domain\": [0, 0.6]}, \"axis\": {\"grid\": false, \"format\": \"%\"}}, \"facet\": {\"field\": \"Industry\", \"type\": \"nominal\", \"title\": null, \"columns\": 4}, \"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\", \"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 - 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\": [\"totalReallocate\"], \"as\": [\"metric\", \"value\"]}, {\"calculate\": \"{'entryRate':'Entry', 'exitRate': 'Exit'}[datum.metric]\", \"as\": \"metricClean\"}], \"height\": 75, \"width\": 75, \"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.6]}, \"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: 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\": 300, \"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\", \"title\": {\"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\": 300, \"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\", \"title\": {\"text\": \"Important issues\", \"subtitle\": [\"The most important issues facing the country?\", \"Source: YouGov\", \"\"], \"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/youGov_issues.csv\"}, \"transform\": [{\"calculate\": \"year(datum.date)\", \"as\": \"year\"}, {\"filter\": \"datum.year>=minYear\"}, {\"filter\": \"datum.year<=maxYear\"}, {\"filter\": \"datum.y1!=0\"}], \"params\": [{\"name\": \"minYear\", \"value\": 2020, \"bind\": {\"input\": \"range\", \"min\": 2011, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 2011, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"repeat\": {\"layer\": [\"Health\", \"The economy\"]}, \"spec\": {\"height\": 300, \"width\": 280, \"mark\": {\"type\": \"line\", \"interpolate\": \"monotone\", \"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\": {\"labxelExpr\": \"{'us10y': 'US', 'y10': 'UK', 'german10y':'Germany'}[datum.label]\", \"orient\": \"top-left\", \"labelColor\": \"#cbc7cf\", \"title\": null, \"titleColor\": \"#cbc7cf\"}}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/lfl8/dataset/lms/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"seagreen\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\"}], \"title\": {\"text\": \"Discouraged workers\", \"subtitle\": \"United Kingdom (thousands) seasonally adjusted\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Year\", \"timeUnit\": \"year\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Number of discouraged workers (thousands)\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/jp9o/dataset/unem/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"seagreen\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\"}], \"title\": {\"text\": \"Accomodation and food service vacancies\", \"subtitle\": \"United Kingdom (thousands) seasonally adjusted\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Year\", \"timeUnit\": \"year\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Accomodation and food service vacancies (thousands)\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/yccf/dataset/lms/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"seagreen\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\"}], \"title\": {\"text\": \"Temporary employees seeking permanent job\", \"subtitle\": \"UK, thousands (16+), seasonally adjusted\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Year\", \"timeUnit\": \"year\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Temporary employees that could not find a permanent job (thousands)\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/a3wx/dataset/lms/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"seagreen\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\"}], \"title\": {\"text\": \"Earnings: real weekly average\", \"subtitle\": \"Whole economy, seasonally adjusted, at constant 2015 prices (\\u00a3)\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"scale\": {\"domain\": [400, 600]}, \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Year\", \"timeUnit\": \"year\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Real weekly average earnings (\\u00a3)\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/mgxb/dataset/lms/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"seagreen\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\"}], \"title\": {\"text\": \"Unemployment rate (25-49)\", \"subtitle\": \"United Kingdom seasonally adjusted\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Year\", \"timeUnit\": \"year\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Unemployment rate for 25-49 year olds (%)\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/ybvq/dataset/lms/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"seagreen\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\"}], \"title\": {\"text\": \"Unemployment rate (18-24)\", \"subtitle\": \"United Kingdom seasonally adjusted\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Year\", \"timeUnit\": \"year\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Unemployment rate for 18-24 year olds (%)\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/lf25/dataset/lms/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"seagreen\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\"}], \"title\": {\"text\": \"Employment rate (women, 16-64)\", \"subtitle\": \"United Kingdom seasonally adjusted\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"scale\": {\"domain\": [50, 100]}, \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Year\", \"timeUnit\": \"year\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Employment rate\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/mgsv/dataset/lms/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"seagreen\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\"}], \"title\": {\"text\": \"Employment rate (men, 16-64)\", \"subtitle\": \"United Kingdom seasonally adjusted\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"scale\": {\"domain\": [50, 100]}, \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Year\", \"timeUnit\": \"year\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Employment rate\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/ap2y/dataset/lms/data\", \"format\": {\"type\": \"json\", \"property\": \"months\"}}, \"mark\": {\"type\": \"line\", \"color\": \"seagreen\", \"strokeWidth\": 2, \"opacity\": 1}, \"title\": {\"text\": \"Vacancies\", \"subtitle\": \"All vacancies, three month average\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/ybus/dataset/lms/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"seagreen\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\"}], \"title\": {\"text\": \"Total weekly hours\", \"subtitle\": \"United Kingdom (millions), 16+, seasonally adjusted\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"scale\": {\"domain\": [600, 1200]}, \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Year\", \"timeUnit\": \"year\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Total weekly hours (millions)\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/jwt6/dataset/lms/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"seagreen\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\"}], \"title\": {\"text\": \"Arts, entertainment and recreation jobs\", \"subtitle\": \"United Kingdom (thousands) seasonally adjusted\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"scale\": {\"domain\": [400, 1200]}, \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Year\", \"timeUnit\": \"year\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Arts, entertainment and recreation jobs (thousands)\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/g7fg/dataset/lms/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"seagreen\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\"}], \"title\": {\"text\": \"NHS jobs\", \"subtitle\": \"United Kingdom (thousands) seasonally adjusted\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"scale\": {\"domain\": [1000, 2000]}, \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Year\", \"timeUnit\": \"year\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"NHS employment (thousands)\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/ap2y/dataset/lms/data\", \"format\": {\"type\": \"json\", \"property\": \"months\"}}, \"mark\": {\"type\": \"line\", \"color\": \"seagreen\", \"strokeWidth\": 2, \"opacity\": 1}, \"title\": {\"text\": \"Vacancies\", \"subtitle\": \"All vacancies, thousands, three month average\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date\", \"type\": \"temporal\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Vacancies (thousands)\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"width\": 120, \"height\": 120, \"title\": {\"text\": \"The UK shopping basket, 1988-2022\", \"subtitle\": [\"Price distributions for items that have been present in the consumer basket since 1988\", \"\"], \"color\": \"whitesmoke\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"subtitleColor\": \"whitesmoke\"}, \"config\": {\"background\": \"#121212\", \"view\": {\"stroke\": \"transparent\"}}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/prices/master/analysis/db_percentilesPerennials.csv\"}, \"mark\": {\"type\": \"area\", \"orient\": \"vertical\", \"opacity\": 0.7}, \"encoding\": {\"facet\": {\"field\": \"desc_short\", \"columns\": 6, \"title\": null, \"align\": \"each\", \"spacing\": 5, \"header\": {\"labelColor\": \"antiquewhite\"}}, \"x\": {\"field\": \"year\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"title\": null, \"grid\": false, \"labelColor\": \"rgb(100,100,100)\", \"tickColor\": \"rgb(100,100,100)\"}}, \"y\": {\"aggregate\": \"sum\", \"field\": \"price\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"title\": null, \"grid\": false, \"labelColor\": \"rgb(100,100,100)\", \"tickColor\": \"rgb(100,100,100)\"}}, \"color\": {\"legend\": null, \"field\": \"decile\", \"scale\": {\"range\": [null, \"#932667\", \"#DD513A\", \"#FCA50A\", \"#FFFF00\", \"#FFFF00\", \"#FCA50A\", \"#DD513A\", \"#932667\"]}}, \"order\": {\"field\": \"decile\"}}, \"resolve\": {\"scale\": {\"y\": \"independent\", \"x\": \"independent\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"width\": 120, \"height\": 120, \"title\": {\"text\": \"The UK shopping basket, 1988-2022\", \"subtitle\": [\"Price distributions for consumer basket items\", \"\"], \"color\": \"whitesmoke\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"subtitleColor\": \"whitesmoke\"}, \"config\": {\"background\": \"#121212\", \"view\": {\"stroke\": \"transparent\"}}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/prices/master/analysis/db_percentilesPerennials.csv\"}, \"mark\": {\"type\": \"area\", \"orient\": \"vertical\", \"opacity\": 0.7}, \"encoding\": {\"facet\": {\"field\": \"desc_short\", \"columns\": 2, \"title\": null, \"align\": \"each\", \"spacing\": 5, \"header\": {\"labelColor\": \"antiquewhite\"}}, \"x\": {\"field\": \"year\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"title\": null, \"grid\": false, \"labelColor\": \"rgb(100,100,100)\", \"tickColor\": \"rgb(100,100,100)\"}}, \"y\": {\"aggregate\": \"sum\", \"field\": \"price\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"title\": null, \"grid\": false, \"labelColor\": \"rgb(100,100,100)\", \"tickColor\": \"rgb(100,100,100)\"}}, \"color\": {\"legend\": null, \"field\": \"decile\", \"scale\": {\"range\": [null, \"#932667\", \"#DD513A\", \"#FCA50A\", \"#FFFF00\", \"#FFFF00\", \"#FCA50A\", \"#DD513A\", \"#932667\"]}}, \"order\": {\"field\": \"decile\"}}, \"resolve\": {\"scale\": {\"y\": \"independent\", \"x\": \"independent\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"width\": 120, \"height\": 120, \"title\": {\"text\": \"The UK shopping basket, 1988-2022\", \"subtitle\": [\"Price distributions for items that have been present in the consumer basket since 1988\", \"\"], \"color\": \"whitesmoke\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"subtitleColor\": \"whitesmoke\"}, \"config\": {\"background\": \"#121212\", \"view\": {\"stroke\": \"transparent\"}}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/prices/master/analysis/db_percentilesPerennials.csv\"}, \"mark\": {\"type\": \"area\", \"orient\": \"vertical\", \"opacity\": 0.7}, \"encoding\": {\"facet\": {\"field\": \"desc_short\", \"columns\": 4, \"title\": null, \"align\": \"each\", \"spacing\": 5, \"header\": {\"labelColor\": \"antiquewhite\"}}, \"x\": {\"field\": \"year\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"title\": null, \"grid\": false, \"labelColor\": \"rgb(100,100,100)\", \"tickColor\": \"rgb(100,100,100)\"}}, \"y\": {\"aggregate\": \"sum\", \"field\": \"price\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"title\": null, \"grid\": false, \"labelColor\": \"rgb(100,100,100)\", \"tickColor\": \"rgb(100,100,100)\"}}, \"color\": {\"legend\": null, \"field\": \"decile\", \"scale\": {\"range\": [null, \"#932667\", \"#DD513A\", \"#FCA50A\", \"#FFFF00\", \"#FFFF00\", \"#FCA50A\", \"#DD513A\", \"#932667\"]}}, \"order\": {\"field\": \"decile\"}}, \"resolve\": {\"scale\": {\"y\": \"independent\", \"x\": \"independent\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"width\": 120, \"height\": 120, \"title\": {\"text\": \"The UK shopping basket, 1988-2022\", \"subtitle\": [\"Price distributions for items that have been present in the consumer basket since 1988\", \"\"], \"color\": \"whitesmoke\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"subtitleColor\": \"whitesmoke\"}, \"config\": {\"background\": \"#121212\", \"view\": {\"stroke\": \"transparent\"}}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/prices/master/analysis/db_percentilesPerennials.csv\"}, \"mark\": {\"type\": \"area\", \"orient\": \"vertical\", \"opacity\": 0.7}, \"encoding\": {\"facet\": {\"field\": \"desc_short\", \"columns\": 6, \"title\": null, \"align\": \"each\", \"spacing\": 5, \"header\": {\"labelColor\": \"antiquewhite\"}}, \"x\": {\"field\": \"year\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"title\": null, \"grid\": false, \"labelColor\": \"antiquewhite\", \"tickColor\": \"pink\"}}, \"y\": {\"aggregate\": \"sum\", \"field\": \"price\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"title\": null, \"grid\": false, \"labelColor\": \"antiquewhite\", \"tickColor\": \"pink\"}}, \"color\": {\"legend\": null, \"field\": \"decile\", \"scale\": {\"range\": [null, \"#932667\", \"#DD513A\", \"#FCA50A\", \"#FFFF00\", \"#FFFF00\", \"#FCA50A\", \"#DD513A\", \"#932667\"]}}, \"order\": {\"field\": \"decile\"}}, \"resolve\": {\"scale\": {\"y\": \"independent\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"UK CPI data visualisation\", \"title\": {\"text\": \"All items - price rises and cuts - [Hover for detail]\", \"subtitle\": \"Share of prices rising and falling for each consumer item\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/prices/8357f5fba93bec983b3e606cee4ae40ecb0b4433/dbLatestRelease.csv\"}, \"height\": 600, \"width\": 300, \"transform\": [{\"calculate\": \"datum.down_sh*(-1)\", \"as\": \"down\"}], \"encoding\": {\"y\": {\"field\": \"upRank\", \"type\": \"quantitative\", \"axis\": {\"grid\": false}, \"scale\": {\"zero\": false}, \"title\": null}}, \"layer\": [{\"mark\": {\"type\": \"circle\", \"opacity\": 0.5, \"color\": \"orange\"}, \"selection\": {\"paintbrush\": {\"type\": \"multi\", \"on\": \"mouseover\", \"nearest\": true}}, \"encoding\": {\"x\": {\"field\": \"up_sh\", \"type\": \"quantitative\", \"axis\": {\"grid\": false}, \"scale\": {\"zero\": true}, \"title\": \"Prices cut\"}, \"tooltip\": [{\"field\": \"item_desc\", \"type\": \"nominal\", \"title\": \"Description\"}, {\"field\": \"item_id\", \"type\": \"nominal\", \"title\": \"Item ID\", \"format\": \".0f\"}, {\"field\": \"p\", \"type\": \"quantitative\", \"title\": \"Price (median)\", \"format\": \".0f\"}, {\"field\": \"up_sh\", \"type\": \"quantitative\", \"title\": \"Share rising\", \"format\": \",.2%\"}, {\"field\": \"down_sh\", \"type\": \"quantitative\", \"title\": \"Share falling\", \"format\": \",.2%\"}]}}, {\"mark\": {\"type\": \"circle\", \"opacity\": 0.5, \"color\": \"blue\"}, \"encoding\": {\"x\": {\"field\": \"down\", \"type\": \"quantitative\", \"axis\": {\"grid\": false}, \"scale\": {\"zero\": true}, \"title\": \"Prices cut\"}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Housing\", \"subtitle\": \"Housing, Water and Fuels, % change 12 months\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"data\": {\"name\": \"myData\", \"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L55S.json\", \"format\": {\"type\": \"json\", \"property\": \"months\"}}, \"mark\": {\"type\": \"line\", \"color\": \"blue\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\": 1988, \"bind\": {\"input\": \"range\", \"min\": 1988, \"max\": 2021, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2021, \"bind\": {\"input\": \"range\", \"min\": 1955, \"max\": 2021, \"step\": 1, \"name\": \"End year:\"}}], \"encoding\": {\"x\": {\"field\": \"dateClean\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": {\"data\": \"myData\", \"field\": \"value\"}}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"UK CPI data visualisation\", \"title\": {\"text\": \"Latest data - risers and fallers - [hover and zoom]\", \"subtitle\": \"CPIH, weighted shares of UK consumer basket\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/prices/8357f5fba93bec983b3e606cee4ae40ecb0b4433/dbLatestRelease.csv\"}, \"height\": 400, \"width\": 300, \"mark\": {\"type\": \"circle\", \"opacity\": 0.5}, \"transform\": [{\"filter\": \"datum.p_ch!=0\"}], \"selection\": {\"paintbrush\": {\"type\": \"multi\", \"on\": \"mouseover\", \"nearest\": true}, \"grid\": {\"type\": \"interval\", \"bind\": \"scales\"}}, \"encoding\": {\"x\": {\"field\": \"p\", \"type\": \"quantitative\", \"axis\": {\"grid\": false}, \"scale\": {\"zero\": false, \"type\": \"log\"}, \"title\": \"Median price\"}, \"y\": {\"field\": \"p_ch\", \"type\": \"quantitative\", \"scale\": {\"zero\": false}, \"title\": \"Median price change\"}, \"color\": {\"condition\": {\"test\": \"datum['p_ch'] < 0\", \"value\": \"blue\"}, \"value\": \"orange\"}, \"size\": {\"condition\": {\"test\": {\"selection\": \"paintbrush\"}, \"value\": 60}, \"value\": 30}, \"tooltip\": [{\"field\": \"item_desc\", \"type\": \"nominal\", \"title\": \"Description\"}, {\"field\": \"item_id\", \"type\": \"nominal\", \"title\": \"Item ID\", \"format\": \".0f\"}, {\"field\": \"p\", \"type\": \"quantitative\", \"title\": \"Price (median)\", \"format\": \".0f\"}, {\"field\": \"p_ch\", \"type\": \"quantitative\", \"title\": \"Price rise (median)\", \"format\": \",.2%\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Tea v Coffee v Hot Cholocolate\", \"subtitle\": \"Percentage 12-month price change for CPI items\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"dateClean\", \"type\": \"temporal\", \"title\": null}}, \"layer\": [{\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L7LM.json\", \"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\"}], \"mark\": {\"type\": \"line\", \"color\": \"#00BFFF\"}, \"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L7LN.json\", \"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\"}], \"mark\": {\"type\": \"line\", \"color\": \"blue\"}, \"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L7LO.json.json\", \"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\"}], \"mark\": {\"type\": \"line\", \"color\": \"#0276FD\"}, \"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Clothing and footwear\", \"subtitle\": \"CPI division 3, % change over 12 months \", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"data\": {\"name\": \"myData\", \"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-D7GA.json\", \"format\": {\"type\": \"json\", \"property\": \"months\"}}, \"mark\": {\"type\": \"line\", \"color\": \"#00BFFF\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\": 1988, \"bind\": {\"input\": \"range\", \"min\": 1988, \"max\": 2021, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2021, \"bind\": {\"input\": \"range\", \"min\": 1955, \"max\": 2021, \"step\": 1, \"name\": \"End year:\"}}], \"encoding\": {\"x\": {\"field\": \"dateClean\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": {\"data\": \"myData\", \"field\": \"value\"}}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Housing\", \"subtitle\": \"Housing, Water and Fuels, % change 12 months\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"data\": {\"name\": \"myData\", \"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L55S.json\", \"format\": {\"type\": \"json\", \"property\": \"months\"}}, \"mark\": {\"type\": \"line\", \"color\": \"#00BFFF\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\": 1988, \"bind\": {\"input\": \"range\", \"min\": 1988, \"max\": 2021, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2021, \"bind\": {\"input\": \"range\", \"min\": 1955, \"max\": 2021, \"step\": 1, \"name\": \"End year:\"}}], \"encoding\": {\"x\": {\"field\": \"dateClean\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": {\"data\": \"myData\", \"field\": \"value\"}}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Food and drink\", \"subtitle\": \"CPI division 1, % change over 12 months \", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"data\": {\"name\": \"myData\", \"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-D7G8.json\", \"format\": {\"type\": \"json\", \"property\": \"months\"}}, \"mark\": {\"type\": \"line\", \"color\": \"#00BFFF\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\": 1988, \"bind\": {\"input\": \"range\", \"min\": 1988, \"max\": 2021, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2021, \"bind\": {\"input\": \"range\", \"min\": 1955, \"max\": 2021, \"step\": 1, \"name\": \"End year:\"}}], \"encoding\": {\"x\": {\"field\": \"dateClean\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": {\"data\": \"myData\", \"field\": \"value\"}}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"What is official inflation based on?\", \"subtitle\": \"CPIH, weighted shares of UK consumer basket\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"name\", \"type\": \"ordinal\", \"title\": null}, \"y\": {\"field\": \"percent\", \"type\": \"quantitative\", \"scale\": {\"domain\": [0, 0.35]}, \"title\": null, \"axis\": {\"format\": \"%\"}, \"stack\": true}, \"color\": {\"field\": \"selectedDate\", \"type\": \"ordinal\", \"title\": null, \"legend\": null, \"scale\": {\"scheme\": \"yellowgreenblue\"}}, \"tooltip\": [{\"field\": \"name\", \"title\": \"Division\"}, {\"field\": \"year\", \"title\": \"Year\", \"type\": \"temporal\", \"format\": \"%Y\"}, {\"field\": \"percent\", \"title\": \"Share of basket\", \"format\": \",.1%\"}]}, \"params\": [{\"name\": \"selectedDate\", \"value\": 2021, \"bind\": {\"input\": \"range\", \"min\": 1988, \"max\": 2021, \"step\": 1, \"name\": \"Select year:\"}}], \"layer\": [{\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5CZ.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Food')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}, {\"filter\": \"datum.date==selectedDate\"}], \"mark\": {\"type\": \"bar\"}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5D2.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Alcohol & Tobacco')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}, {\"filter\": \"datum.date==selectedDate\"}], \"mark\": {\"type\": \"bar\"}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5D3.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Clothing & Footwear')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}, {\"filter\": \"datum.date==selectedDate\"}], \"mark\": {\"type\": \"bar\"}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5D4.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Housing & Utilities')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}, {\"filter\": \"datum.date==selectedDate\"}], \"mark\": {\"type\": \"bar\"}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5D5.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Furniture & maintenance')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}, {\"filter\": \"datum.date==selectedDate\"}], \"mark\": {\"type\": \"bar\"}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5D6.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Health')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}, {\"filter\": \"datum.date==selectedDate\"}], \"mark\": {\"type\": \"bar\"}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5D7.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Transport')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}, {\"filter\": \"datum.date==selectedDate\"}], \"mark\": {\"type\": \"bar\"}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5D8.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Communication')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}, {\"filter\": \"datum.date==selectedDate\"}], \"mark\": {\"type\": \"bar\"}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5D9.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Recreation')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}, {\"filter\": \"datum.date==selectedDate\"}], \"mark\": {\"type\": \"bar\"}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5DA.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Education')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}, {\"filter\": \"datum.date==selectedDate\"}], \"mark\": {\"type\": \"bar\"}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5DB.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Hotels')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}, {\"filter\": \"datum.date==selectedDate\"}], \"mark\": {\"type\": \"bar\"}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5DC.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Misc')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}, {\"filter\": \"datum.date==selectedDate\"}], \"mark\": {\"type\": \"bar\"}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"CPI - sources of inflation\", \"subtitle\": \"Contributions to CPI all items by sub series\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"description\": \"CPI contribution\", \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/teaching2/main/cpiContributions.csv\", \"format\": {\"type\": \"csv\"}}, \"height\": 300, \"width\": 300, \"mark\": {\"type\": \"bar\", \"width\": 3}, \"transform\": [{\"filter\": {\"selection\": \"pickSeries\"}}], \"selection\": {\"pickSeries\": {\"type\": \"single\", \"fields\": [\"series\"], \"bind\": {\"input\": \"select\", \"options\": [null, \"AlcoholTobacco\", \"ClothingFootwear\", \"Communication\", \"Education\", \"Food\", \"FurnitureHousehold\", \"Health\", \"HousingHouseService\", \"Misc\", \"RecreationCulture\", \"RestaurantsHotels\", \"Transport\"], \"name\": \"Pick a series: \"}}}, \"encoding\": {\"x\": {\"field\": \"Date\", \"type\": \"temporal\", \"title\": \"\"}, \"y\": {\"field\": \"Value\", \"type\": \"quantitative\", \"title\": \"\"}, \"color\": {\"field\": \"series\", \"type\": \"nominal\", \"legend\": {\"orient\": \"bottom\", \"columns\": 2}, \"XYZscale\": {\"range\": [\"rgb(0, 0, 255)\", \"rgb(40, 40, 255)\", \"rgb(80, 80, 255)\", \"rgb(120, 120, 255)\", \"rgb(160, 160, 255)\", \"rgb(200, 200, 255)\"]}, \"scale\": {\"range\": [\"rgb(0, 0, 255)\", \"rgb(20, 20, 255)\", \"rgb(40, 40, 255)\", \"rgb(60, 60, 255)\", \"rgb(80, 80, 255)\", \"rgb(100, 100, 255)\", \"rgb(120, 120, 255)\", \"rgb(140, 140, 255)\", \"rgb(160, 160, 255)\", \"rgb(180, 180, 255)\", \"rgb(200, 200, 255)\", \"rgb(200, 200, 255)\"]}, \"title\": \"\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Fish vs meat\", \"subtitle\": \"Percentage 12-month change\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"dateClean\", \"type\": \"temporal\", \"title\": null}, \"color\": {\"field\": \"name\", \"type\": \"ordinal\", \"title\": null, \"legend\": {\"orient\": \"bottom\"}, \"scale\": {\"range\": [\"#00BFFF\", \"#0276FD\", \"#63D1F4\"]}}}, \"layer\": [{\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-D7HI.json\", \"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\"}, {\"calculate\": \"replace(datum.quarter, '', 'Meat')\", \"as\": \"name\"}], \"mark\": {\"type\": \"line\", \"color\": \"blue\"}, \"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-D7HJ.json\", \"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\"}, {\"calculate\": \"replace(datum.quarter, '', 'Fish')\", \"as\": \"name\"}], \"mark\": {\"type\": \"line\", \"color\": \"#00BFFF\"}, \"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Clothing, health and education\", \"subtitle\": \"Percentage 12-month change, CPI divisions\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"dateClean\", \"type\": \"temporal\", \"title\": null}, \"color\": {\"field\": \"name\", \"type\": \"ordinal\", \"title\": null, \"legend\": {\"orient\": \"bottom\"}, \"scale\": {\"range\": [\"#00BFFF\", \"#0276FD\", \"#63D1F4\"]}}}, \"layer\": [{\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-D7GA.json\", \"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\"}, {\"calculate\": \"replace(datum.quarter, '', 'Clothing & footwear')\", \"as\": \"name\"}], \"mark\": {\"type\": \"line\", \"color\": \"#0276FD\"}, \"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-D7GD.json\", \"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\"}, {\"calculate\": \"replace(datum.quarter, '', 'Health')\", \"as\": \"name\"}], \"mark\": {\"type\": \"line\", \"color\": \"#00BFFF\"}, \"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-D7GH.json\", \"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\"}, {\"calculate\": \"replace(datum.quarter, '', 'Education')\", \"as\": \"name\"}], \"mark\": {\"type\": \"line\", \"color\": \"green\"}, \"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Goods vs Services\", \"subtitle\": \"Percentage 12-month price change for CPI items\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"dateClean\", \"type\": \"temporal\", \"title\": null}, \"color\": {\"field\": \"name\", \"type\": \"ordinal\", \"title\": null, \"scale\": {\"range\": [\"#00BFFF\", \"#0276FD\"]}, \"legend\": {\"orient\": \"bottom\"}}}, \"layer\": [{\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-D7NM.json\", \"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\"}, {\"calculate\": \"replace(datum.quarter, '', 'Goods')\", \"as\": \"name\"}], \"mark\": {\"type\": \"line\"}, \"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-D7NN.json\", \"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\"}, {\"calculate\": \"replace(datum.quarter, '', 'Services')\", \"as\": \"name\"}], \"mark\": {\"type\": \"line\"}, \"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Inflation - since 1800\", \"subtitle\": \"RPI: long series: annual percentage change \", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"data\": {\"name\": \"myData\", \"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-CDSI.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"mark\": {\"type\": \"line\", \"color\": \"#00BFFF\", \"strokeWidth\": 2, \"opacity\": 1}, \"transform\": [{\"filter\": \"datum.year>minYear\"}, {\"filter\": \"datum.year<maxYear\"}], \"params\": [{\"name\": \"minYear\", \"value\": 1800, \"bind\": {\"input\": \"range\", \"min\": 1800, \"max\": 2021, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2021, \"bind\": {\"input\": \"range\", \"min\": 1800, \"max\": 2021, \"step\": 1, \"name\": \"End year:\"}}], \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": {\"data\": \"myData\", \"field\": \"value\"}}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Price distributions - pick an item\", \"subtitle\": [\"Prices (\\u00a3), colours set by decile for the 10th to 90th deciles\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"subtitlePadding\": 5, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/prices/master/analysis/newItems.csv\"}, \"transform\": [{\"filter\": {\"selection\": \"chooseItem\"}}, {\"filter\": {\"field\": \"price\", \"oneOf\": [\"10\", \"1020\", \"2030\", \"3040\", \"4050\", \"5060\", \"6070\", \"7080\", \"8090\"]}}], \"selection\": {\"chooseItem\": {\"type\": \"single\", \"init\": {\"itemName\": \"Pub Meal\"}, \"fields\": [\"itemName\"], \"bind\": {\"input\": \"select\", \"options\": [\"Cigarettes\", \"Lettuce\", \"Men's socks\", \"Pub Meal\"], \"name\": \"Pick an item:\"}}}, \"mark\": {\"type\": \"area\", \"orient\": \"vertical\", \"opacity\": 0.7}, \"encoding\": {\"x\": {\"field\": \"newDate\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"aggregate\": \"sum\", \"field\": \"p\", \"type\": \"quantitative\", \"title\": null}, \"color\": {\"legend\": null, \"field\": \"price\", \"scale\": {\"range\": [null, \"#D9D9F3\", \"#00BFFF\", \"#0276FD\", \"#000080\", \"#000080\", \"#0276FD\", \"#00BFFF\", \"#D9D9F3\"]}}, \"order\": {\"field\": \"price\"}}, \"resolve\": {\"scale\": {\"y\": \"independent\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Inflation - other G7 countries\", \"subtitle\": \"Source: OECD\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 150, \"height\": 150, \"mark\": {\"type\": \"line\", \"smooth\": false, \"color\": \"rgb(0,112,192)\", \"strokeWidth\": 2, \"opacity\": 1}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_OECD_inflation.csv\"}, \"transform\": [{\"calculate\": \"datum.Value/100\", \"as\": \"value\"}, {\"calculate\": \"year(datum.TIME)\", \"as\": \"year\"}, {\"filter\": \"datum.LOCATION!='USA'\"}, {\"filter\": \"datum.year>=minYear\"}, {\"filter\": \"datum.year<=maxYear\"}], \"params\": [{\"name\": \"minYear\", \"value\": 1989, \"bind\": {\"input\": \"range\", \"min\": 1969, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 1969, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"encoding\": {\"x\": {\"field\": \"TIME\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"format\": \"%\"}}, \"facet\": {\"field\": \"LOCATION\", \"columns\": 3, \"title\": null}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"UK CPI data visualisation\", \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/prices/3634bcb9ebef58b53e2d475e1767f7c621d0bc83/db_item.csv\"}, \"title\": {\"text\": \"Explore the CPI data\", \"subtitle\": [\"Price rises and falls, size of circle = median price\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"transform\": [{\"filter\": {\"field\": \"n_obs\", \"gt\": 10000}}], \"selection\": {\"paintbrush\": {\"type\": \"multi\", \"on\": \"mouseover\", \"nearest\": true}, \"grid\": {\"type\": \"interval\", \"bind\": \"scales\"}, \"division\": {\"type\": \"multi\", \"fields\": [\"division\"], \"bind\": \"legend\"}}, \"height\": 300, \"width\": 300, \"mark\": \"circle\", \"encoding\": {\"x\": {\"field\": \"up1_sh\", \"type\": \"quantitative\", \"scale\": {\"zero\": false}, \"title\": \"Share rising\"}, \"y\": {\"field\": \"down1_sh\", \"type\": \"quantitative\", \"scale\": {\"zero\": false}, \"title\": \"Share falling\"}, \"color\": {\"field\": \"division\", \"type\": \"nominal\", \"title\": \"Division\", \"scale\": {\"scheme\": \"turbo\"}}, \"opacity\": {\"condition\": {\"selection\": \"division\", \"value\": 0.5}, \"value\": 0}, \"size\": {\"condition\": {\"selection\": \"paintbrush\", \"value\": 800}, \"field\": \"n_obs\", \"type\": \"nominal\", \"legend\": null}, \"tooltip\": [{\"field\": \"name5\", \"type\": \"nominal\", \"title\": \"Item\"}, {\"field\": \"description\", \"type\": \"nominal\", \"title\": \"ONS name\"}, {\"field\": \"date_quote_s\", \"type\": \"quantitative\", \"title\": \"Start\", \"format\": \".0f\"}, {\"field\": \"date_quote_e\", \"type\": \"quantitative\", \"title\": \"End\", \"format\": \".0f\"}, {\"field\": \"p_med\", \"type\": \"quantitative\", \"title\": \"Median price (\\u00a3)\", \"format\": \".2f\"}, {\"field\": \"change1_sh\", \"type\": \"quantitative\", \"title\": \"Price changes\", \"format\": \".0%\"}, {\"field\": \"n_obs\", \"type\": \"quantitative\", \"title\": \"Observations\", \"format\": \",\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/prices/master/analysis/priceChangesByDivision.csv\"}, \"title\": {\"text\": \"Price flexbility: rising and falling\", \"subtitle\": \"Share of prices changing each month. Source: LRPD (2021)\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"transform\": [{\"filter\": \"datum.up_sh<0.25\"}, {\"filter\": \"datum.down_sh<0.25\"}], \"encoding\": {\"y\": {\"aggregate\": \"count\", \"title\": null}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"color\": \"orange\", \"opacity\": 0.4}, \"encoding\": {\"x\": {\"bin\": {\"maxbins\": 100}, \"field\": \"up_sh\", \"axis\": {\"format\": \".0%\"}, \"title\": null}}}, {\"mark\": {\"type\": \"line\", \"color\": \"blue\", \"opacity\": 0.4}, \"encoding\": {\"x\": {\"bin\": {\"maxbins\": 100}, \"field\": \"down_sh\", \"title\": null}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/prices/master/analysis/priceChangesByDivision.csv\"}, \"title\": {\"text\": \"Price flexbility - heat map\", \"subtitle\": [\"Share of prices rising and falling each month. Source: LRPD (2021)\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"mark\": \"rect\", \"width\": 55, \"height\": 55, \"transform\": [{\"filter\": \"datum.up_sh<0.25\"}, {\"filter\": \"datum.down_sh<0.25\"}], \"encoding\": {\"x\": {\"bin\": {\"maxbins\": 5}, \"field\": \"up_sh\", \"type\": \"quantitative\", \"scale\": {\"domain\": [0, 0.25]}, \"title\": \"Rising prices\", \"axis\": {\"format\": \".0%\"}}, \"y\": {\"bin\": {\"maxbins\": 5}, \"field\": \"down_sh\", \"type\": \"quantitative\", \"scale\": {\"domain\": [0, 0.25]}, \"title\": \"Falling prices\", \"axis\": {\"format\": \".0%\"}}, \"color\": {\"aggregate\": \"count\", \"type\": \"quantitative\", \"legend\": null}, \"facet\": {\"field\": \"division_sh\", \"title\": null, \"columns\": 3}}, \"config\": {\"view\": {\"stroke\": \"transparent\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/prices/master/analysis/priceChangesByDivision.csv\"}, \"title\": {\"text\": \"Price flexbility - heat map\", \"subtitle\": [\"Share of prices rising and falling each month. Source: LRPD (2021)\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"mark\": \"rect\", \"width\": 300, \"height\": 300, \"transform\": [{\"filter\": \"datum.up_sh<0.25\"}, {\"filter\": \"datum.down_sh<0.25\"}], \"encoding\": {\"x\": {\"bin\": {\"maxbins\": 100}, \"field\": \"up_sh\", \"type\": \"quantitative\", \"scale\": {\"domain\": [0, 0.25]}, \"title\": \"Rising prices\", \"axis\": {\"format\": \".0%\"}}, \"y\": {\"bin\": {\"maxbins\": 100}, \"field\": \"down_sh\", \"type\": \"quantitative\", \"scale\": {\"domain\": [0, 0.25]}, \"title\": \"Falling prices\", \"axis\": {\"format\": \".0%\"}}, \"color\": {\"aggregate\": \"count\", \"type\": \"quantitative\", \"legend\": null}}, \"config\": {\"view\": {\"stroke\": \"transparent\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/prices/master/analysis/priceChangesByDivision.csv\"}, \"title\": {\"text\": \"Price flexbility - all items\", \"subtitle\": \"Share of prices changing, monthly, 1988-2021. Source: LRPD (2021)\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"mark\": {\"type\": \"bar\", \"color\": \"orange\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"bin\": {\"maxbins\": 50}, \"field\": \"change_sh\", \"title\": null, \"axis\": {\"format\": \".0%\"}}, \"y\": {\"aggregate\": \"count\", \"title\": null}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Price adjustment - monthly\", \"height\": 300, \"width\": 300, \"title\": {\"text\": \"Price flexibility, by month\", \"subtitle\": [\"Share of prices changing month-on-month, 1990-2021\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/prices/master/analysis/db_AdjustmentFrequency.csv\", \"format\": {\"type\": \"csv\"}}, \"transform\": [{\"calculate\": \"timeParse(datum.date3, '%d-%m-%Y')\", \"as\": \"date4\"}, {\"filter\": {\"field\": \"year\", \"gt\": 1989}}, {\"filter\": {\"field\": \"change_sh\", \"lt\": 0.4}}], \"mark\": {\"type\": \"point\", \"color\": \"rgba(0,67,167)\", \"size\": 90, \"opacity\": 0.7}, \"selection\": {\"paintbrush\": {\"type\": \"multi\", \"on\": \"mouseover\", \"nearest\": true}}, \"encoding\": {\"x\": {\"field\": \"date4\", \"type\": \"temporal\", \"timeUnit\": \"month\", \"title\": null}, \"y\": {\"field\": \"change_sh\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": [0, 0.35]}}, \"size\": {\"condition\": {\"test\": {\"selection\": \"paintbrush\"}, \"value\": 150}, \"value\": 90}, \"tooltip\": [{\"field\": \"date4\", \"type\": \"temporal\", \"format\": \"%b-%Y\", \"title\": \"Date\"}, {\"field\": \"change_sh\", \"type\": \"quantitative\", \"format\": \",.1%\", \"title\": \"Price changes\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Inflation - comparing three measures\", \"subtitle\": \"CPI, CPIH and RPI, percentage change, 12-months, 1948-present\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"params\": [{\"name\": \"minYear\", \"value\": 1989, \"bind\": {\"input\": \"range\", \"min\": 1948, \"max\": 2021, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2021, \"bind\": {\"input\": \"range\", \"min\": 1948, \"max\": 2021, \"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://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L55O.json\", \"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\"}, {\"calculate\": \"replace(datum.quarter, '', 'CPIH')\", \"as\": \"name\"}, {\"filter\": \"datum.year>=minYear\"}, {\"filter\": \"datum.year<=maxYear\"}], \"mark\": {\"type\": \"line\"}, \"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-CZBH.json\", \"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\"}, {\"calculate\": \"replace(datum.quarter, '', 'RPI')\", \"as\": \"name\"}, {\"filter\": \"datum.year>=minYear\"}, {\"filter\": \"datum.year<=maxYear\"}], \"mark\": {\"type\": \"line\"}, \"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-D7G7.json\", \"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\"}, {\"calculate\": \"replace(datum.quarter, '', 'CPI')\", \"as\": \"name\"}, {\"filter\": \"datum.year>=minYear\"}, {\"filter\": \"datum.year<=maxYear\"}], \"mark\": {\"type\": \"line\"}, \"encoding\": {\"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Price adjustment - monthly\", \"height\": 300, \"width\": 280, \"title\": {\"text\": \"Price changes vs inflation\", \"subtitle\": [\"Net 12-m price changes, CPI inflation\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/prices/master/analysis/db_AdjustmentFrequency.csv\", \"format\": {\"type\": \"csv\"}}, \"transform\": [{\"calculate\": \"timeParse(datum.date3, '%d-%m-%Y')\", \"as\": \"date4\"}], \"encoding\": {\"x\": {\"field\": \"date4\", \"title\": null, \"axis\": {\"grid\": false}, \"type\": \"temporal\"}}, \"layer\": [{\"mark\": {\"type\": \"bar\"}, \"encoding\": {\"y\": {\"field\": \"inflation\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false, \"format\": \",.0%\"}}, \"color\": {\"datum\": \"inflation\"}}}, {\"mark\": {\"type\": \"line\", \"point\": false, \"strokeWidth\": 1.5}, \"encoding\": {\"y\": {\"field\": \"net12_sh\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false, \"format\": \",.0%\"}}, \"color\": {\"datum\": \"net12_sh\", \"scale\": {\"range\": [\"rgba(150,150,220)\", \"rgba(0,67,167)\"]}, \"legend\": {\"orient\": \"top\", \"labelExpr\": \"{'net12_sh': 'Net price change (rhs)', 'inflation': 'CPI inflation (lhs)'}[datum.label]\"}}}}], \"resolve\": {\"scale\": {\"y\": \"independent\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Price adjustment - monthly\", \"height\": 300, \"width\": 300, \"title\": {\"text\": \"Price adjustment\", \"subtitle\": [\"Share of prices changing month-on-month\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/prices/master/analysis/db_AdjustmentFrequency.csv\", \"format\": {\"type\": \"csv\"}}, \"transform\": [{\"calculate\": \"timeParse(datum.date3, '%d-%m-%Y')\", \"as\": \"date4\"}, {\"filter\": {\"field\": \"change_sh\", \"gt\": 0}}, {\"filter\": {\"field\": \"change_sh\", \"lt\": 0.31}}], \"encoding\": {\"x\": {\"field\": \"date4\", \"type\": \"temporal\", \"title\": null}}, \"layer\": [{\"encoding\": {\"y\": {\"field\": \"change_sh\", \"type\": \"quantitative\", \"title\": null}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"color\": \"rgb(0,67,167)\", \"strokeWidth\": 1, \"opacity\": 1}}, {\"transform\": [{\"filter\": {\"selection\": \"hover\"}}], \"mark\": {\"type\": \"circle\", \"size\": 150, \"color\": \"rgb(0,67,167)\"}}]}, {\"mark\": \"rule\", \"encoding\": {\"opacity\": {\"condition\": {\"value\": 0.2, \"selection\": \"hover\"}, \"value\": 0}, \"tooltip\": [{\"field\": \"date4\", \"type\": \"temporal\", \"format\": \"%b-%Y\", \"title\": \"Date\"}, {\"field\": \"change_sh\", \"type\": \"quantitative\", \"format\": \",.1%\", \"title\": \"Price changes\"}]}, \"selection\": {\"hover\": {\"type\": \"single\", \"fields\": [\"date4\"], \"nearest\": true, \"on\": \"mouseover\", \"empty\": \"none\", \"clear\": \"mouseout\"}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"UK CPI data visualisation\", \"title\": {\"text\": \"All items - price rises and cuts - [Hover for detail]\", \"subtitle\": \"Share of prices rising and falling for each consumer item\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/prices/8357f5fba93bec983b3e606cee4ae40ecb0b4433/dbLatestRelease.csv\"}, \"height\": 300, \"width\": 300, \"mark\": {\"type\": \"circle\", \"opacity\": 0.8, \"color\": \"rgb(0, 47, 167)\"}, \"selection\": {\"paintbrush\": {\"type\": \"multi\", \"on\": \"mouseover\", \"nearest\": true}}, \"encoding\": {\"x\": {\"field\": \"down_sh\", \"type\": \"quantitative\", \"axis\": {\"grid\": false}, \"scale\": {\"zero\": true}, \"title\": \"Prices cut\"}, \"y\": {\"field\": \"up_sh\", \"type\": \"quantitative\", \"axis\": {\"grid\": false}, \"scale\": {\"zero\": false}, \"title\": \"Prices rising\"}, \"size\": {\"field\": \"p\", \"type\": \"quantitative\", \"title\": \"Price\", \"legend\": {\"orient\": \"top-right\"}, \"scale\": {\"range\": [20, 500]}}, \"color\": {\"field\": \"name1\", \"type\": \"ordinal\", \"title\": \"Item type\", \"legend\": {\"orient\": \"bottom\", \"columns\": 2}, \"scale\": {\"scheme\": \"set1\"}}, \"tooltip\": [{\"field\": \"item_desc\", \"type\": \"nominal\", \"title\": \"Description\"}, {\"field\": \"item_id\", \"type\": \"nominal\", \"title\": \"Item ID\", \"format\": \".0f\"}, {\"field\": \"p\", \"type\": \"quantitative\", \"title\": \"Price (median)\", \"format\": \".0f\"}, {\"field\": \"up_sh\", \"type\": \"quantitative\", \"title\": \"Share rising\", \"format\": \",.2%\"}, {\"field\": \"down_sh\", \"type\": \"quantitative\", \"title\": \"Share falling\", \"format\": \",.2%\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"UK CPI data visualisation\", \"title\": {\"text\": \"All items - price rises and cuts - [Hover for detail]\", \"subtitle\": \"Share of prices rising and falling for each consumer item\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/prices/8357f5fba93bec983b3e606cee4ae40ecb0b4433/dbLatestRelease.csv\"}, \"height\": 300, \"width\": 300, \"mark\": {\"type\": \"circle\", \"opacity\": 0.5, \"color\": \"orange\"}, \"selection\": {\"paintbrush\": {\"type\": \"multi\", \"on\": \"mouseover\", \"nearest\": true}}, \"encoding\": {\"x\": {\"field\": \"down_sh\", \"type\": \"quantitative\", \"axis\": {\"grid\": false}, \"scale\": {\"zero\": true}, \"title\": \"Prices cut\"}, \"y\": {\"field\": \"up_sh\", \"type\": \"quantitative\", \"axis\": {\"grid\": false}, \"scale\": {\"zero\": false}, \"title\": \"Prices rising\"}, \"color\": {\"condition\": {\"test\": {\"selection\": \"paintbrush\"}, \"value\": \"red\"}, \"value\": \"orange\"}, \"tooltip\": [{\"field\": \"item_desc\", \"type\": \"nominal\", \"title\": \"Description\"}, {\"field\": \"item_id\", \"type\": \"nominal\", \"title\": \"Item ID\", \"format\": \".0f\"}, {\"field\": \"p\", \"type\": \"quantitative\", \"title\": \"Price (median)\", \"format\": \".0f\"}, {\"field\": \"up_sh\", \"type\": \"quantitative\", \"title\": \"Share rising\", \"format\": \",.2%\"}, {\"field\": \"down_sh\", \"type\": \"quantitative\", \"title\": \"Share falling\", \"format\": \",.2%\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"UK CPI data visualisation\", \"title\": {\"text\": \"This month - top risers\", \"subtitle\": \"Hover for item detail. Bubble size based on median price\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"config\": {\"background\": \"white\", \"view\": {\"stroke\": \"transparent\"}}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/prices/8357f5fba93bec983b3e606cee4ae40ecb0b4433/dbLatestRelease.csv\"}, \"height\": 400, \"width\": 300, \"selection\": {\"paintbrush\": {\"type\": \"multi\", \"on\": \"mouseover\", \"nearest\": true}}, \"transform\": [{\"calculate\": \"datum.down_sh*(-1)\", \"as\": \"down\"}, {\"filter\": \"datum.upRank>550\"}], \"mark\": {\"type\": \"circle\", \"opacity\": 0.8, \"color\": \"#f4a245\", \"size\": 60}, \"encoding\": {\"y\": {\"field\": \"upRank\", \"type\": \"quantitative\", \"axis\": {\"grid\": false, \"labels\": false}, \"scale\": {\"zero\": false}, \"title\": null}, \"x\": {\"field\": \"up_sh\", \"type\": \"quantitative\", \"axis\": {\"grid\": false, \"format\": \",.0%\"}, \"scale\": {\"zero\": true}, \"title\": \"Share of prices rising\"}, \"size\": {\"field\": \"p\", \"type\": \"quantitative\", \"title\": \"Price\", \"legend\": {\"orient\": \"bottom-left\"}}, \"color\": {\"field\": \"name1\", \"type\": \"ordinal\", \"title\": \"Item type\", \"legend\": {\"orient\": \"top-left\"}, \"scale\": {\"scheme\": \"set1\"}}, \"tooltip\": [{\"field\": \"item_desc\", \"type\": \"nominal\", \"title\": \"Description\"}, {\"field\": \"p\", \"type\": \"quantitative\", \"title\": \"Price (median)\", \"format\": \".0f\"}, {\"field\": \"up_sh\", \"type\": \"quantitative\", \"title\": \"Share rising\", \"format\": \",.2%\"}, {\"field\": \"down_sh\", \"type\": \"quantitative\", \"title\": \"Share falling\", \"format\": \",.2%\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"width\": 120, \"height\": 150, \"title\": {\"text\": \"Price distributions - four items\", \"subtitle\": \"Prices by decile\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/prices/master/analysis/newItems.csv\"}, \"transform\": [{\"filter\": {\"field\": \"price\", \"oneOf\": [\"10\", \"1020\", \"2030\", \"3040\", \"4050\", \"5060\", \"6070\", \"7080\", \"8090\"]}}], \"mark\": {\"type\": \"area\", \"orient\": \"vertical\", \"opacity\": 0.7}, \"encoding\": {\"facet\": {\"field\": \"itemName\", \"columns\": 2, \"title\": null}, \"x\": {\"field\": \"newDate\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"aggregate\": \"sum\", \"field\": \"p\", \"type\": \"quantitative\", \"title\": null}, \"color\": {\"legend\": null, \"field\": \"price\", \"scale\": {\"range\": [null, \"#D9D9F3\", \"#00BFFF\", \"#0276FD\", \"#000080\", \"#000080\", \"#0276FD\", \"#00BFFF\", \"#D9D9F3\"]}}, \"order\": {\"field\": \"price\"}}, \"resolve\": {\"scale\": {\"y\": \"independent\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"CPIH weights\", \"subtitle\": \"Percentage of overall consumer basket\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"percent\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"format\": \"%\"}}, \"color\": {\"field\": \"name\", \"type\": \"ordinal\", \"title\": null, \"legend\": {\"orient\": \"bottom\", \"columns\": 2}, \"scale\": {\"scheme\": \"yellowgreenblue\"}}, \"tooltip\": [{\"field\": \"name\", \"title\": \"Division\"}, {\"field\": \"year\", \"title\": \"Year\", \"type\": \"temporal\", \"format\": \"%Y\"}, {\"field\": \"value\", \"title\": \"Weight\"}]}, \"layer\": [{\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5CZ.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Food')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}], \"mark\": {\"type\": \"line\"}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5D2.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Alcohol & Tobacco')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}], \"mark\": {\"type\": \"line\"}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5D3.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Clothing & Footwear')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}], \"mark\": {\"type\": \"line\"}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5D4.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Housing & Utilities')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}], \"mark\": {\"type\": \"line\"}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5D5.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Furniture & maintenance')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}], \"mark\": {\"type\": \"line\"}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5D6.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Health')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}], \"mark\": {\"type\": \"line\"}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5D7.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Transport')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}], \"mark\": {\"type\": \"line\"}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5D8.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Communication')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}], \"mark\": {\"type\": \"line\"}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5D9.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Recreation')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}], \"mark\": {\"type\": \"line\"}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5DA.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Education')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}], \"mark\": {\"type\": \"line\"}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5DB.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Hotels')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}], \"mark\": {\"type\": \"line\"}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-L5DC.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"transform\": [{\"calculate\": \"replace(datum.quarter, '', 'Misc')\", \"as\": \"name\"}, {\"calculate\": \"datum.value/1000\", \"as\": \"percent\"}], \"mark\": {\"type\": \"line\"}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Inflation - official target\", \"subtitle\": \"CPI, % change over 12 months \", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 280, \"height\": 300, \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/d7g7/dataset/mm23/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\": 2015, \"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\": \"line\", \"color\": \"#00BFFF\", \"width\": 10, \"strokeWidth\": 2, \"opacity\": 1}, \"encoding\": {\"x\": {\"field\": \"dateClean\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}, {\"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\": \"#00BFFF\", \"size\": 100}}, {\"mark\": {\"type\": \"text\", \"align\": \"left\", \"dx\": 8, \"color\": \"#00BFFF\"}}]}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Inflation (1988-2022)\", \"subtitle\": [\"CPI, % change over 12 months\", \"\"], \"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/d7g7/dataset/mm23/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\": 1988, \"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\": \"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\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/ikbb/dataset/qna/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"#122b39\", \"strokeWidth\": 2, \"opacity\": 1}, \"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>minYear\"}, {\"filter\": \"datum.year<maxYear\"}], \"title\": {\"text\": \"Exports of services\", \"subtitle\": \"At current prices (\\u00a3m). Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"params\": [{\"name\": \"minYear\", \"value\": 2005, \"bind\": {\"input\": \"range\", \"min\": 2005, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 2005, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"width\": 280, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Services exported (\\u00a3m)\"}]}, \"config\": {}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/bokg/dataset/qna/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"#122b39\", \"strokeWidth\": 2, \"opacity\": 1}, \"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>minYear\"}, {\"filter\": \"datum.year<maxYear\"}], \"title\": {\"text\": \"Exports of goods\", \"subtitle\": \"At current prices (\\u00a3m). Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"params\": [{\"name\": \"minYear\", \"value\": 2005, \"bind\": {\"input\": \"range\", \"min\": 2005, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 2005, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"width\": 280, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Goods exported (\\u00a3m)\"}]}, \"config\": {}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/kgd5/dataset/qna/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"#122b39\", \"strokeWidth\": 2, \"opacity\": 1}, \"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>minYear\"}, {\"filter\": \"datum.year<maxYear\"}], \"title\": {\"text\": \"Household spending on restaurants and hotels\", \"subtitle\": \"ONS, quarter on quarter (%)\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"params\": [{\"name\": \"minYear\", \"value\": 2005, \"bind\": {\"input\": \"range\", \"min\": 2005, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 2005, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"width\": 280, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Consumption growth (%)\"}]}, \"config\": {}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/kgz6/dataset/qna/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"#122b39\", \"strokeWidth\": 2, \"opacity\": 1}, \"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>minYear\"}, {\"filter\": \"datum.year<maxYear\"}], \"title\": {\"text\": \"Household consumption growth\", \"subtitle\": \"Quarter on quarter (%). Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"params\": [{\"name\": \"minYear\", \"value\": 1955, \"bind\": {\"input\": \"range\", \"min\": 1955, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 1955, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"width\": 280, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Consumption growth (%)\"}]}, \"config\": {}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/ihyq/dataset/qna/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"#122b39\", \"strokeWidth\": 2, \"opacity\": 1}, \"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>minYear\"}, {\"filter\": \"datum.year<maxYear\"}], \"title\": {\"text\": \"GDP growth\", \"subtitle\": \"Quarter on quarter (%), market prices. Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"params\": [{\"name\": \"minYear\", \"value\": 1955, \"bind\": {\"input\": \"range\", \"min\": 1955, \"max\": 2021, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2021, \"bind\": {\"input\": \"range\", \"min\": 1955, \"max\": 2021, \"step\": 1, \"name\": \"End year:\"}}], \"width\": 280, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"GDP growth (%)\"}]}, \"config\": {}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/ihxt/dataset/qna/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"#122b39\", \"strokeWidth\": 2, \"opacity\": 1}, \"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>minYear\"}, {\"filter\": \"datum.year<maxYear\"}], \"title\": {\"text\": \"GDP per capita - by quarter\", \"subtitle\": \"At current prices (\\u00a3). Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"params\": [{\"name\": \"minYear\", \"value\": 2005, \"bind\": {\"input\": \"range\", \"min\": 2005, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 2005, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"width\": 280, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"GDP per capita (\\u00a3)\"}]}, \"config\": {}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/abml/dataset/qna/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"#122b39\", \"strokeWidth\": 2, \"opacity\": 1}, \"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>minYear\"}, {\"filter\": \"datum.year<maxYear\"}], \"title\": {\"text\": \"Gross Value Added (GVA)\", \"subtitle\": \"At basic prices (\\u00a3m). Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"params\": [{\"name\": \"minYear\", \"value\": 2005, \"bind\": {\"input\": \"range\", \"min\": 2005, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 2005, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"width\": 280, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"GVA (\\u00a3m)\"}]}, \"config\": {}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/abmz/dataset/qna/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"#122b39\", \"strokeWidth\": 2, \"opacity\": 1}, \"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>minYear\"}, {\"filter\": \"datum.year<maxYear\"}], \"title\": {\"text\": \"Gross National Income (GNI)\", \"subtitle\": \"At market prices (\\u00a3m). Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"params\": [{\"name\": \"minYear\", \"value\": 2005, \"bind\": {\"input\": \"range\", \"min\": 2005, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 2005, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"width\": 280, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"GNI (\\u00a3m)\"}]}, \"config\": {}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/ikbj/dataset/qna/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"#122b39\", \"strokeWidth\": 2, \"opacity\": 1}, \"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>minYear\"}, {\"filter\": \"datum.year<maxYear\"}], \"title\": {\"text\": \"Trade balance\", \"subtitle\": \"At market prices (\\u00a3m). Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"params\": [{\"name\": \"minYear\", \"value\": 2005, \"bind\": {\"input\": \"range\", \"min\": 2005, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 2005, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"width\": 280, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Services imported\"}]}, \"config\": {}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/ikbc/dataset/qna/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"#122b39\", \"strokeWidth\": 2, \"opacity\": 1}, \"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>minYear\"}, {\"filter\": \"datum.year<maxYear\"}], \"title\": {\"text\": \"Imports of services\", \"subtitle\": \"At market prices (\\u00a3m). Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"params\": [{\"name\": \"minYear\", \"value\": 2005, \"bind\": {\"input\": \"range\", \"min\": 2005, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 2005, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"width\": 280, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Services imported\"}]}, \"config\": {}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/bokh/dataset/qna/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"#122b39\", \"strokeWidth\": 2, \"opacity\": 1}, \"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>minYear\"}, {\"filter\": \"datum.year<maxYear\"}], \"title\": {\"text\": \"Imports of goods\", \"subtitle\": \"At market prices (\\u00a3m). Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"params\": [{\"name\": \"minYear\", \"value\": 2005, \"bind\": {\"input\": \"range\", \"min\": 2005, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 2005, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"width\": 280, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Goods imported\"}]}, \"config\": {}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/ybha/dataset/qna/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"#122b39\", \"strokeWidth\": 2, \"opacity\": 1}, \"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>minYear\"}, {\"filter\": \"datum.year<maxYear\"}], \"title\": {\"text\": \"Gross Domestic Product (GDP)\", \"subtitle\": \"At market prices (\\u00a3m). Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"params\": [{\"name\": \"minYear\", \"value\": 2005, \"bind\": {\"input\": \"range\", \"min\": 2005, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 2005, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"width\": 280, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"GDP (\\u00a3m)\"}]}, \"config\": {}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/libr/dataset/pusf/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"bar\", \"color\": \"rebeccapurple\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\"}], \"title\": {\"text\": \"Income and capital gains tax revenue\", \"subtitle\": \"\\u00a3 million. Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\", \"timeUnit\": \"yearmonth\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Tax revenue (\\u00a3m)\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/nmfj/dataset/pusf/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"bar\", \"color\": \"rebeccapurple\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\"}], \"title\": {\"text\": \"Central government net borrowing\", \"subtitle\": \"\\u00a3 million. Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 280, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\", \"timeUnit\": \"yearmonth\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Net borrowing (\\u00a3m)\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/nmoe/dataset/pusf/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"bar\", \"color\": \"rebeccapurple\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\"}], \"title\": {\"text\": \"Local government net borrowing\", \"subtitle\": \"\\u00a3 million. Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 280, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\", \"timeUnit\": \"yearmonth\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Net borrowing (\\u00a3m)\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/hf6x/dataset/pusf/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"rebeccapurple\", \"strokeWidth\": 2, \"opacity\": 1}, \"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>minYear\"}, {\"filter\": \"datum.year<maxYear\"}], \"params\": [{\"name\": \"minYear\", \"value\": 1992, \"bind\": {\"input\": \"range\", \"min\": 1995, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 1995, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"title\": {\"text\": \"Net debt\", \"subtitle\": \"% of GDP. Excluding public sector banks. Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\", \"timeUnit\": \"yearmonth\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Net debt (% GDP)\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/hf6w/dataset/pusf/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"bar\", \"color\": \"rebeccapurple\", \"strokeWidth\": 2, \"opacity\": 1}, \"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>minYear\"}, {\"filter\": \"datum.year<maxYear\"}], \"params\": [{\"name\": \"minYear\", \"value\": 1992, \"bind\": {\"input\": \"range\", \"min\": 1995, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 1995, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"title\": {\"text\": \"Net debt\", \"subtitle\": \"\\u00a3 billion. Excluding public sector banks. Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\", \"timeUnit\": \"yearmonth\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Net debt (\\u00a3b)\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/hf6x/dataset/pusf/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"bar\", \"color\": \"rebeccapurple\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\"}, {\"impute\": \"value\", \"key\": \"date3\", \"groupby\": [\"year\"], \"method\": \"median\", \"frame\": [3, 1]}], \"title\": {\"text\": \"Net borrowing\", \"subtitle\": \"% GDP. Including public sector banks. Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 280, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\", \"timeUnit\": \"yearmonth\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Net borrowing (% GDP)\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/cpoa/dataset/pusf/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"bar\", \"color\": \"rebeccapurple\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\"}, {\"impute\": \"value\", \"key\": \"date3\", \"groupby\": [\"year\"], \"method\": \"median\", \"frame\": [3, 1]}], \"title\": {\"text\": \"Net borrowing\", \"subtitle\": \"% GDP. Excluding public sector banks. Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 280, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\", \"timeUnit\": \"yearmonth\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Net borrowing (% GDP)\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/mub2/dataset/pusf/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"bar\", \"color\": \"rebeccapurple\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\"}, {\"impute\": \"value\", \"key\": \"date3\", \"groupby\": [\"year\"], \"method\": \"median\", \"frame\": [3, 1]}], \"title\": {\"text\": \"Net investment\", \"subtitle\": \"% GDP. Excluding public sector banks. Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 280, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\", \"timeUnit\": \"yearmonth\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Net investment (% GDP)\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/mf6u/dataset/pusf/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"bar\", \"color\": \"rebeccapurple\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\"}], \"title\": {\"text\": \"Total government expenditure\", \"subtitle\": \"\\u00a3 million. Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 280, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\", \"timeUnit\": \"yearmonth\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Expenditure (\\u00a3m)\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/mf6r/dataset/pusf/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"area\", \"color\": \"rebeccapurple\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\"}], \"title\": {\"text\": \"Total government revenue\", \"subtitle\": \"\\u00a3 million. Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 280, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\", \"timeUnit\": \"yearmonth\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Revenue (\\u00a3m)\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/-anbv/dataset/pusf/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"bar\", \"color\": \"rebeccapurple\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\"}], \"title\": {\"text\": \"Total tax revenue\", \"subtitle\": \"\\u00a3 million. Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 280, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\", \"timeUnit\": \"yearmonth\"}, {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"Tax revenue (\\u00a3m)\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/jw2v/dataset/pusf/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"bar\", \"color\": \"rebeccapurple\", \"strokeWidth\": 2, \"opacity\": 1}, \"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\"}, {\"impute\": \"value\", \"key\": \"date3\", \"groupby\": [\"year\"], \"method\": \"median\", \"frame\": [3, 1]}], \"title\": {\"text\": \"Current budget deficit\", \"subtitle\": \"% GDP. Annual median. Source: ONS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"tooltip\": [{\"field\": \"date3\", \"type\": \"temporal\", \"title\": \"Date\", \"timeUnit\": \"yearquarter\"}, {\"field\": \"imputed_value_value\", \"type\": \"quantitative\", \"title\": \"Deficit (% GDP)\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Wales - population\", \"subtitle\": [\"Electoral wards, by population. Source: ONS\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\", \"color\": \"black\"}, \"config\": {\"background\": \"white\", \"view\": {\"stroke\": \"transparent\"}}, \"width\": 300, \"height\": 300, \"layer\": [{\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/geoWalWards.json\", \"format\": {\"type\": \"topojson\", \"feature\": \"wards\"}}, \"mark\": {\"type\": \"geoshape\", \"stroke\": \"#fafafa\", \"fill\": \"white\", \"strokeWidth\": 0.5}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/geoWalWards.json\", \"format\": {\"type\": \"topojson\", \"feature\": \"wards\"}}, \"transform\": [{\"lookup\": \"properties.WD13NM\", \"from\": {\"key\": \"wardName\", \"fields\": [\"Population\", \"Lacode\"], \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/dataUKPopWards.csv\"}}}], \"projection\": {\"type\": \"mercator\"}, \"mark\": {\"type\": \"geoshape\", \"stroke\": \"white\", \"strokeWidth\": 0.1}, \"encoding\": {\"color\": {\"field\": \"Population\", \"type\": \"quantitative\", \"scale\": {\"scheme\": \"lightmulti\"}, \"legend\": {\"orient\": \"top-left\", \"direction\": \"vertical\"}}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"width\": 500, \"height\": 300, \"view\": {\"stroke\": \"transparent\"}, \"title\": {\"text\": \"Heading West\", \"fontSize\": 12, \"subtitle\": [\"Population by State, US, 1900-2021\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\"}, \"params\": [{\"name\": \"yearSelector\", \"value\": 2015, \"bind\": {\"input\": \"range\", \"min\": 1900, \"max\": 2021, \"step\": 5, \"name\": \"Year:\"}}], \"layer\": [{\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/geoUSStates.json\", \"format\": {\"type\": \"topojson\", \"feature\": \"wards\"}}, \"mark\": {\"type\": \"geoshape\", \"stroke\": \"#fafafa\", \"fill\": \"black\", \"strokeWidth\": 0.5}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/dataUSstatesPopulationLong.csv\", \"format\": {\"type\": \"csv\"}}, \"transform\": [{\"filter\": \"datum.Year == yearSelector\"}, {\"lookup\": \"State\", \"from\": {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/geoUSStates.json\", \"format\": {\"property\": \"features\"}}, \"key\": \"properties.NAME\", \"fields\": [\"properties\", \"type\", \"geometry\"]}}], \"projection\": {\"type\": \"albersUsa\"}, \"mark\": {\"type\": \"geoshape\", \"stroke\": \"black\"}, \"encoding\": {\"color\": {\"field\": \"Value\", \"legend\": {\"title\": null, \"orient\": \"right\", \"direction\": \"vertical\"}, \"type\": \"quantitative\", \"scale\": {\"scheme\": \"lightgreyred\"}}}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"width\": 500, \"height\": 300, \"view\": {\"stroke\": \"transparent\"}, \"title\": {\"text\": \"Going West (and South)\", \"fontSize\": 12, \"subtitle\": [\"US States, Population, 1900-2021\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\"}, \"params\": [{\"name\": \"yearSelector\", \"value\": 1900, \"bind\": {\"input\": \"range\", \"min\": 1900, \"max\": 2021, \"step\": 1, \"name\": \"Year:\"}}], \"projection\": {\"type\": \"albersUsa\"}, \"mark\": \"geoshape\", \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/dataUSstatesPopulation.csv\", \"format\": {\"type\": \"csv\"}}, \"transform\": [{\"calculate\": \"toNumber(yearSelector)\", \"as\": \"yearS\"}, {\"filter\": \"datum.yearS == datum.Year\"}, {\"fold\": [\"California\", \"Florida\", \"Arizona\", \"New York\", \"Texas\", \"Alabama\", \"North Carolina\", \"Illinois\", \"Utah\", \"Nevada\", \"Kentucky\", \"District of Columbia\", \"Wisconsin\", \"Connecticut\", \"Pennsylvania\", \"Colorado\", \"Missouri\", \"Arizona\", \"Washington\", \"Louisiana\", \"Georgia\", \"New Mexico\", \"Virginia\", \"New Jersey\", \"South Carolina\", \"Oregon\", \"Idaho\", \"Ohio\", \"Tennessee\", \"Nebraska\", \"Oklahoma\", \"Indiana\", \"Arkansas\", \"Michigan\", \"Massachusetts\", \"Hawaii\", \"Montana\", \"Mississippi\", \"New Hampshire\", \"Maryland\", \"Delaware\", \"Vermont\", \"Minnesota\", \"Kansas\", \"South Dakota\", \"Maine\", \"West Virginia\", \"Wyoming\", \"Iowa\", \"Rhode Island\", \"North Dakota\"], \"as\": [\"State\", \"Value\"]}, {\"lookup\": \"State\", \"from\": {\"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/geoUSStates.json\", \"format\": {\"property\": \"features\"}}, \"key\": \"properties.NAME\", \"fields\": [\"properties\", \"type\", \"geometry\"]}}], \"encoding\": {\"color\": {\"field\": \"Value\", \"legend\": {\"title\": null, \"orient\": \"right\", \"direction\": \"vertical\"}, \"type\": \"quantitative\", \"scale\": {\"scheme\": \"lightgreyred\"}}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"width\": 500, \"height\": 300, \"view\": {\"stroke\": \"transparent\"}, \"title\": {\"text\": \"US States - Population\", \"fontSize\": 12, \"subtitle\": [\"Population, 1900-2021\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\"}, \"params\": [{\"name\": \"yearSelector\", \"value\": 2015, \"bind\": {\"input\": \"range\", \"min\": 1900, \"max\": 2021, \"step\": 5, \"name\": \"Year:\"}}], \"mark\": {\"type\": \"bar\", \"color\": \"rgb(0,67,167)\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/dataUSstatesPopulation.csv\", \"format\": {\"type\": \"csv\"}}, \"transform\": [{\"calculate\": \"toNumber(yearSelector)\", \"as\": \"yearS\"}, {\"filter\": \"datum.yearS == datum.Year\"}, {\"fold\": [\"New York\", \"California\", \"Florida\", \"Texas\", \"Alabama\", \"North Carolina\", \"Illinois\"], \"as\": [\"State\", \"Value\"]}], \"encoding\": {\"x\": {\"field\": \"State\", \"type\": \"ordinal\"}, \"y\": {\"field\": \"Value\", \"type\": \"quantitative\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"width\": 500, \"height\": 300, \"view\": {\"stroke\": \"transparent\"}, \"title\": {\"text\": \"New York vs California\", \"fontSize\": 12, \"subtitle\": [\"Population, 1900-2021\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\"}, \"params\": [{\"name\": \"yearSelector\", \"value\": 2015, \"bind\": {\"input\": \"range\", \"min\": 1900, \"max\": 2021, \"step\": 5, \"name\": \"Year:\"}}], \"mark\": {\"type\": \"bar\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/dataUSstatesPopulation.csv\", \"format\": {\"type\": \"csv\"}}, \"transform\": [{\"calculate\": \"toNumber(yearSelector)\", \"as\": \"yearS\"}, {\"filter\": \"datum.yearS == datum.Year\"}, {\"fold\": [\"New York\", \"California\"], \"as\": [\"State\", \"Value\"]}], \"encoding\": {\"x\": {\"field\": \"State\", \"type\": \"ordinal\"}, \"y\": {\"field\": \"Value\", \"type\": \"quantitative\"}, \"color\": {\"field\": \"State\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"width\": 500, \"height\": 300, \"view\": {\"stroke\": \"transparent\"}, \"title\": {\"text\": \"New York vs California\", \"fontSize\": 12, \"subtitle\": [\"Population, 1900-2021\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\"}, \"mark\": {\"type\": \"line\", \"color\": \"rgb(0,67,167)\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/dataUSstatesPopulation.csv\", \"format\": {\"type\": \"csv\"}}, \"transform\": [{\"fold\": [\"New York\", \"California\"], \"as\": [\"State\", \"Value\"]}], \"encoding\": {\"x\": {\"field\": \"Year\", \"type\": \"temporal\"}, \"y\": {\"field\": \"Value\", \"type\": \"quantitative\"}, \"color\": {\"field\": \"State\"}}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"width\": 500, \"height\": 300, \"view\": {\"stroke\": \"transparent\"}, \"title\": {\"text\": \"Crime in the USA\", \"fontSize\": 12, \"subtitle\": [\"Offences per 100k population. Source FBI, 2019\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/geoUSStates.json\", \"format\": {\"property\": \"features\"}}, \"projection\": {\"type\": \"albersUsa\"}, \"mark\": \"geoshape\", \"params\": [{\"name\": \"Select\", \"value\": \"Violent Crime\", \"bind\": {\"input\": \"select\", \"options\": [\"Violent Crime\", \"Homocide\", \"Rape\", \"Robbery\", \"Aggravated Assault\", \"Property Crime\", \"Burglary\", \"Larceny\", \"Motor Vehicle Theft\", \"Arson\"]}}], \"transform\": [{\"lookup\": \"properties.NAME\", \"from\": {\"data\": {\"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/USA_crime_databank_wide.csv\"}, \"key\": \"State\", \"fields\": [\"Violent Crime\", \"Homocide\", \"Rape\", \"Robbery\", \"Aggravated Assault\", \"Property Crime\", \"Burglary\", \"Larceny\", \"Motor Vehicle Theft\", \"Arson\"]}}, {\"calculate\": \"datum[Select]\", \"as\": \"varSelected\"}], \"encoding\": {\"color\": {\"field\": \"varSelected\", \"legend\": {\"title\": null, \"orient\": \"right\", \"direction\": \"vertical\"}, \"type\": \"quantitative\", \"scale\": {\"scheme\": \"lightgreyred\"}}, \"tooltip\": [{\"field\": \"properties.NAME\", \"title\": \"State\"}, {\"field\": \"varSelected\", \"title\": \"Offending rate\", \"format\": \",d\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"width\": 500, \"height\": 300, \"view\": {\"stroke\": \"transparent\"}, \"title\": {\"text\": \"Car theft in the USA\", \"fontSize\": 12, \"subtitle\": [\"Offences per 100k population. Source FBI, 2019\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/geoUSStates.json\", \"format\": {\"property\": \"features\"}}, \"transform\": [{\"lookup\": \"properties.NAME\", \"from\": {\"key\": \"State\", \"fields\": [\"Motor Vehicle Theft\"], \"data\": {\"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/USA_crime_databank_wide.csv\"}}}], \"projection\": {\"type\": \"albersUsa\"}, \"mark\": \"geoshape\", \"encoding\": {\"color\": {\"field\": \"Motor Vehicle Theft\", \"legend\": {\"title\": null, \"orient\": \"right\", \"direction\": \"vertical\"}, \"type\": \"quantitative\", \"scale\": {\"scheme\": \"lightgreyred\", \"reverse\": false}}, \"tooltip\": [{\"field\": \"properties.NAME\", \"title\": \"State\"}, {\"field\": \"Motor Vehicle Theft\", \"title\": \"Offences:\", \"format\": \",d\"}]}}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"width\": 350, \"height\": 400, \"title\": {\"text\": \"UK Airport Map\", \"subtitle\": [\"Passenger & aircaft movements. Source: CAA 2021\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\", \"color\": \"black\"}, \"config\": {\"background\": \"white\", \"view\": {\"stroke\": \"transparent\"}}, \"layer\": [{\"data\": {\"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/UK%20Map%20Data/ITL1_2021_20m.geojson\", \"format\": {\"property\": \"features\"}}, \"projection\": {\"type\": \"mercator\"}, \"mark\": {\"type\": \"geoshape\", \"fill\": \"lightgray\", \"stroke\": \"white\", \"strokeWidth\": 0.1}, \"encoding\": {\"tooltip\": {\"field\": \"properties.ITL121NM\"}}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/point_maps/UK_airports2.csv\"}, \"projection\": {\"type\": \"mercator\"}, \"mark\": \"circle\", \"encoding\": {\"longitude\": {\"field\": \"longitude\", \"type\": \"quantitative\"}, \"latitude\": {\"field\": \"latitude\", \"type\": \"quantitative\"}, \"size\": {\"field\": \"Aircraft Movements\", \"type\": \"quantitative\"}, \"color\": {\"value\": \"#D35400\"}, \"tooltip\": [{\"field\": \"Airport\"}, {\"field\": \"Passengers\", \"format\": \",\"}, {\"field\": \"Aircraft Movements\", \"format\": \",\"}]}}]}"
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"This version mends the problem match caused by one variable being a number and the other being string. See 004 Afghanistan for example\", \"title\": {\"text\": \"World Map\", \"subtitle\": \"With country names tooltip\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\", \"color\": \"black\"}, \"config\": {\"background\": \"white\", \"view\": {\"stroke\": \"transparent\"}}, \"width\": 610, \"height\": 500, \"data\": {\"url\": \"https://unpkg.com/world-atlas@1.1.4/world/110m.json\", \"format\": {\"type\": \"topojson\", \"feature\": \"countries\"}}, \"transform\": [{\"calculate\": \"parseInt(datum.id)\", \"as\": \"id_N\"}, {\"lookup\": \"id_N\", \"from\": {\"key\": \"id\", \"fields\": [\"name\"], \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/dataWorldCountryNamesIDs.json\"}}}, {\"lookup\": \"name\", \"from\": {\"key\": \"Country\", \"fields\": [\"Value\"], \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/dataWEOApr2022all.csv\"}}}], \"projection\": {\"type\": \"naturalEarth1\"}, \"mark\": {\"type\": \"geoshape\", \"stroke\": \"white\", \"strokeWidth\": 0.1}, \"encoding\": {\"tooltip\": {\"field\": \"name\"}, \"color\": {\"field\": \"id_N\", \"type\": \"quantitative\", \"legend\": null}}}"