{"$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}}
{"$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.