{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","width":400,"height":400,"params":[{"name":"year","value":2021,"bind":{"input":"range","min":2001,"max":2021,"step":10}}],"data":{"url":"https://yingyingho.github.io/data/MigrationCombineCleanupv3.csv"},"transform":[{"filter":"datum.year == year"},{"lookup":"code","from":{"data":{"url":"https://gicentre.github.io/data/census21/ewLAs.json","format":{"type":"topojson","feature":"las"}},"key":"properties.code"},"as":"geo"}],"projection":{"type":"transverseMercator","rotate":{"expr":"[2,0,0]"}},"encoding":{"shape":{"field":"geo","type":"geojson"},"color":{"field":"number","type":"quantitative","scale":{"domain":[0,14161]},"legend":{"orient":"right","title":"immigrants"}},"tooltip":[{"field":"label"},{"field":"number"}]},"mark":{"type":"geoshape","stroke":"white","strokeWidth":0.7}}

2001

2011

014,1612,0004,0006,0008,00010,00012,000immigrants2021

200020022004200620082010201220142016201820202022050,000100,000150,000200,000no. of immigrantsEastEast MidlandsLondonNorth EastNorth WestSouth EastSouth WestWalesWest MidlandsYorkshire & Humberregion

2001201120210200,000400,000600,000+64%-25%London

200120112021+42%+4%South West

200120112021+36%-6%South East

200120112021+101%+14%North West

200120112021+59%+1%East

200120112021+90%+5%West Midlands

200120112021+86%-9%Yorkshire & Humber

200120112021+92%+20%East Midlands

200120112021+73%-1%North East

200120112021+105%-15%Wales

{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","width":360,"height":400,"data":{"url":"https://yingyingho.github.io/data/Combine_singleColRegion.csv"},"params":[{"name":"year","value":2021,"bind":{"input":"range","min":2001,"max":2021,"step":10}}],"transform":[{"calculate":"random()","as":"jitter"},{"filter":"datum.year == year"}],"encoding":{"x":{"field":"region","axis":null},"xOffset":{"field":"jitter"},"y":{"field":"number","type":"quantitative","axis":{"title":"no. of immigrants"},"scale":{"domain":[0,14600]}},"color":{"field":"region"},"tooltip":[{"field":"label"},{"field":"year"},{"field":"number"}]},"mark":"circle"}

region year number
North East 2001 9768
North East 2011 16879
North East 2021 16644
North West 2001 26281
North West 2011 52831
North West 2021 60199
: : :

30 rows and 3 columns in total.