{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","config":{"view":{"stroke":null},"header":{"labelFontSize":0},"facet":{"spacing":0}},"data":{"url":"https://hypercyte.github.io/data/londonReligionGrowth.csv"},"transform":[{"lookup":"GSSCode","from":{"data":{"url":"https://gicentre.github.io/data/geoTutorials/londonCentroidsAndGrid.csv"},"key":"GSSCode","fields":["gridCol","gridRow","fullName"]}},{"calculate":"datum[religion]","as":"selectedReligion"},{"calculate":"datum[percentChange]","as":"percentChange"}],"mark":"square","encoding":{"row":{"field":"gridRow","header":{"title":null}},"column":{"field":"gridCol","header":{"title":null}},"size":{"field":"selectedReligion","type":"quantitative","scale":{"range":[0,4500]},"title":"Religious Population"},"color":{"field":"percentChange","type":"quantitative","scale":{"scheme":"lightgreyteal","domainMin":{"expr":"Lower Bound"},"domainMax":{"expr":"Upper Bound"},"domainMid":{"expr":"Center Point"}},"legend":{"direction":"horizontal"},"title":"2011-2021 percentage change"},"tooltip":{"field":"borough"}},"params":[{"name":"religion","value":"2011muslims","bind":{"input":"select","name":"Compare 2021 to: ","options":["2011muslims","2011hindu","2011christians"]}},{"name":"percentChange","value":"percentChangeMuslims","bind":{"input":"select","name":"Percentage change of: ","options":["percentChangeMuslims","percentChangeHindu","percentChangeChristians"]}},{"name":"Lower Bound","value":-10,"bind":{"input":"range","min":-100,"max":150}},{"name":"Upper Bound","value":100,"bind":{"input":"range","min":10,"max":150}},{"name":"Center Point","value":20,"bind":{"input":"range","min":-20,"max":100}}]}