{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","width":200,"height":800,"hconcat":[{"width":575,"height":575,"data":{"url":"https://Ewan97007.github.io/DataVizData/RegionVarTbl.csv"},"encoding":{"shape":{"field":"geo","type":"geojson"},"color":{"field":"category","type":"quantitative","title":"Health category","scale":{"scheme":{"name":"blueorange","extent":[0,1.1]}},"legend":{"title":"Regions Health%","format":"%","orient":"bottom-right","offset":-50,"direction":"horizontal","gradientLength":300,"tickCount":6,"titleLimit":300}},"tooltip":[{"field":"areaName"},{"field":"categoryT","format":".2f","title":"Health Category %"},{"field":"None","format":".2f","title":"NoQ %"},{"field":"level1_3","format":".2f","title":"Level 1-3 %"},{"field":"level4","format":".2f","title":"Level 4 %"},{"field":"part_time","format":".2f","title":"Part Time %"},{"field":"full_time","format":".2f","title":"Full Time %"},{"field":"management","format":".2f","title":"Management %"},{"field":"support","format":".2f","title":"Support %"},{"field":"service","format":".2f","title":"Service %"}]},"transform":[{"lookup":"code","from":{"data":{"url":"https://gicentre.github.io/data/census21/englandAndWales/regions.json","format":{"type":"topojson","feature":"regions"}},"key":"properties.code"},"as":"geo"},{"calculate":"datum[category]/100","as":"category"},{"calculate":"datum[category]","as":"categoryT"}],"projection":{"type":"identity","reflectY":true},"mark":"geoshape"},{"width":575,"height":575,"params":[{"name":"category","value":"VeryGoodHealth","bind":{"input":"radio","name":"Health category: ","options":["VeryGoodHealth","GoodHealth","FairHealth","BadHealth","VeryBadHealth"]}}],"data":{"url":"https://Ewan97007.github.io/DataVizData/LaVarTbl.csv"},"encoding":{"shape":{"field":"geo","type":"geojson"},"color":{"field":"category","type":"quantitative","title":"Health category: ","scale":{"scheme":{"name":"blueorange","extent":[0,1.1]}},"legend":{"title":"LA Health%","format":"%","orient":"bottom-right","offset":-50,"direction":"horizontal","gradientLength":300,"tickCount":6,"titleLimit":300}},"tooltip":[{"field":"areaName"},{"field":"categoryT","format":".2f","title":"Health Category %"},{"field":"None","format":".2f","title":"NoQ %"},{"field":"level1_3","format":".2f","title":"Level 1-3 %"},{"field":"level4","format":".2f","title":"Level 4 %"},{"field":"part_time","format":".2f","title":"Part Time %"},{"field":"full_time","format":".2f","title":"Full Time %"},{"field":"management","format":".2f","title":"Management %"},{"field":"support","format":".2f","title":"Support %"},{"field":"service","format":".2f","title":"Service %"}]},"transform":[{"lookup":"code","from":{"data":{"url":"https://gicentre.github.io/data/census21/englandAndWales/las.json","format":{"type":"topojson","feature":"las"}},"key":"properties.code"},"as":"geo"},{"calculate":"datum[category]/100","as":"category"},{"calculate":"datum[category]","as":"categoryT"}],"projection":{"type":"identity","reflectY":true},"mark":"geoshape"}],"params":[{"name":"category","value":"VeryGoodHealth","bind":{"input":"radio","name":"Health category: ","options":["VeryGoodHealth","GoodHealth","FairHealth","BadHealth","VeryBadHealth"]}}],"resolve":{"scale":{"color":"independent"}}}
{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","width":300,"height":300,"data":{"url":"https://Ewan97007.github.io/DataVizData/LaVarTbl.csv"},"transform":[{"calculate":"datum[varSel]/100","as":"varSel"},{"calculate":"datum[category]/100","as":"category"},{"window":[{"as":"rowNumber","op":"row_number"}]}],"params":[{"name":"category","value":"VeryGoodHealth","bind":{"input":"radio","name":"Health category: ","options":["VeryGoodHealth","GoodHealth","FairHealth","BadHealth","VeryBadHealth"]}},{"name":"varSel","value":"full_time","bind":{"input":"radio","name":"variable: ","options":["full_time","part_time"]}}],"resolve":{"legend":{"color":"independent"}},"hconcat":[{"width":300,"height":300,"params":[{"name":"brush","select":"interval"}],"encoding":{"x":{"field":"varSel","type":"quantitative","scale":{"zero":false},"axis":{"grid":false,"title":"% of employment category","format":"%"}},"y":{"field":"category","type":"quantitative","scale":{"zero":false},"axis":{"grid":false,"title":"% of Health Category","format":"%"}},"color":{"condition":{"param":"brush","field":"category","type":"quantitative","scale":{"scheme":{"name":"blueorange","extent":[0,1]}},"legend":{"format":"%"}},"value":"grey"}},"mark":"circle"},{"title":{"text":"% of Employment Category"},"transform":[{"filter":{"param":"brush"}},{"window":[{"as":"rank","op":"rank"}]},{"filter":{"field":"rank","lt":20}}],"mark":"text","encoding":{"y":{"field":"rowNumber","axis":null},"text":{"field":"varSel","format":".2f"}}},{"title":{"text":"% of Health Category"},"transform":[{"filter":{"param":"brush"}},{"window":[{"as":"rank","op":"rank"}]},{"filter":{"field":"rank","lt":20}}],"encoding":{"y":{"field":"rowNumber","axis":null},"text":{"field":"category","format":".1%"}},"mark":"text"},{"title":{"text":"Area Name"},"transform":[{"filter":{"param":"brush"}},{"window":[{"as":"rank","op":"rank"}]},{"filter":{"field":"rank","lt":20}}],"encoding":{"y":{"field":"rowNumber","axis":null},"text":{"field":"areaName"}},"mark":"text"},{"layer":[{"width":300,"height":300,"encoding":{"x":{"field":"cx","type":"quantitative","scale":{"zero":false},"axis":null},"y":{"field":"cy","type":"quantitative","scale":{"zero":false},"axis":null},"tooltip":{"field":"areaName"}},"params":[{"name":"myZoom","select":"interval","bind":"scales"}],"mark":{"type":"circle","size":40,"color":"#F5F5F5"}},{"transform":[{"filter":{"param":"brush","empty":false}}],"encoding":{"x":{"field":"cx","type":"quantitative"},"y":{"field":"cy","type":"quantitative"},"color":{"field":"category","type":"quantitative","scale":{"scheme":{"name":"blueorange","extent":[0,1]}},"legend":null},"tooltip":{"field":"areaName"}},"mark":{"type":"circle","size":80,"opacity":0.7}}]}],"config":{"view":{"stroke":null}}}
{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","width":300,"height":300,"data":{"url":"https://Ewan97007.github.io/DataVizData/LaVarTbl.csv"},"transform":[{"calculate":"datum[varSel]/100","as":"varSel"},{"calculate":"datum[category]/100","as":"category"},{"window":[{"as":"rowNumber","op":"row_number"}]}],"params":[{"name":"category","value":"VeryGoodHealth","bind":{"input":"radio","name":"Health category: ","options":["VeryGoodHealth","GoodHealth","FairHealth","BadHealth","VeryBadHealth"]}},{"name":"varSel","value":"management","bind":{"input":"radio","name":"variable: ","options":["management","support","service"]}}],"resolve":{"legend":{"color":"independent"}},"hconcat":[{"width":300,"height":300,"params":[{"name":"brush","select":"interval"}],"encoding":{"x":{"field":"varSel","type":"quantitative","scale":{"zero":false},"axis":{"grid":false,"title":"% of Occupation Category","format":"%"}},"y":{"field":"category","type":"quantitative","scale":{"zero":false},"axis":{"grid":false,"title":"% of Health Category","format":"%"}},"color":{"condition":{"param":"brush","field":"category","type":"quantitative","scale":{"scheme":{"name":"blueorange","extent":[0,1]}},"legend":{"format":"%"}},"value":"grey"}},"mark":"circle"},{"title":{"text":"% of Occupation Category"},"transform":[{"filter":{"param":"brush"}},{"window":[{"as":"rank","op":"rank"}]},{"filter":{"field":"rank","lt":20}}],"mark":"text","encoding":{"y":{"field":"rowNumber","axis":null},"text":{"field":"varSel","format":".2f"}}},{"title":{"text":"% of Health Category"},"transform":[{"filter":{"param":"brush"}},{"window":[{"as":"rank","op":"rank"}]},{"filter":{"field":"rank","lt":20}}],"encoding":{"y":{"field":"rowNumber","axis":null},"text":{"field":"category","format":".1%"}},"mark":"text"},{"title":{"text":"Area Name"},"transform":[{"filter":{"param":"brush"}},{"window":[{"as":"rank","op":"rank"}]},{"filter":{"field":"rank","lt":20}}],"encoding":{"y":{"field":"rowNumber","axis":null},"text":{"field":"areaName"}},"mark":"text"},{"layer":[{"width":300,"height":300,"encoding":{"x":{"field":"cx","type":"quantitative","scale":{"zero":false},"axis":null},"y":{"field":"cy","type":"quantitative","scale":{"zero":false},"axis":null},"tooltip":{"field":"areaName"}},"params":[{"name":"myZoom","select":"interval","bind":"scales"}],"mark":{"type":"circle","size":40,"color":"#eee"}},{"transform":[{"filter":{"param":"brush","empty":false}}],"encoding":{"x":{"field":"cx","type":"quantitative"},"y":{"field":"cy","type":"quantitative"},"color":{"field":"category","type":"quantitative","scale":{"scheme":{"name":"blueorange","extent":[0,1]}},"legend":null},"tooltip":{"field":"areaName"}},"mark":{"type":"circle","size":80,"opacity":0.7}}]}],"config":{"view":{"stroke":null}}}
{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","width":300,"height":300,"data":{"url":"https://Ewan97007.github.io/DataVizData/LaVarTbl.csv"},"transform":[{"calculate":"datum[varSel]/100","as":"varSel"},{"calculate":"datum[category]/100","as":"category"},{"window":[{"as":"rowNumber","op":"row_number"}]}],"params":[{"name":"category","value":"VeryGoodHealth","bind":{"input":"radio","name":"Health category: ","options":["VeryGoodHealth","GoodHealth","FairHealth","BadHealth","VeryBadHealth"]}},{"name":"varSel","value":"None","bind":{"input":"radio","name":"variable: ","options":["None","level1_3","level4","Apprenticeship"]}}],"resolve":{"legend":{"color":"independent"}},"hconcat":[{"width":300,"height":300,"params":[{"name":"brush","select":"interval"}],"encoding":{"x":{"field":"varSel","type":"quantitative","scale":{"zero":false},"axis":{"grid":false,"title":"% with highest education level","format":"%"}},"y":{"field":"category","type":"quantitative","scale":{"zero":false},"axis":{"grid":false,"title":"% of Health Category","format":"%"}},"color":{"condition":{"param":"brush","field":"category","type":"quantitative","scale":{"scheme":{"name":"blueorange","extent":[0,1]}},"legend":{"format":"%"}},"value":"grey"}},"mark":"circle"},{"title":{"text":"% of Education Category"},"transform":[{"filter":{"param":"brush"}},{"window":[{"as":"rank","op":"rank"}]},{"filter":{"field":"rank","lt":20}}],"mark":"text","encoding":{"y":{"field":"rowNumber","axis":null},"text":{"field":"varSel","format":".2f"}}},{"title":{"text":"% of Health Category"},"transform":[{"filter":{"param":"brush"}},{"window":[{"as":"rank","op":"rank"}]},{"filter":{"field":"rank","lt":20}}],"encoding":{"y":{"field":"rowNumber","axis":null},"text":{"field":"category","format":".1%"}},"mark":"text"},{"title":{"text":"Area Name"},"transform":[{"filter":{"param":"brush"}},{"window":[{"as":"rank","op":"rank"}]},{"filter":{"field":"rank","lt":20}}],"encoding":{"y":{"field":"rowNumber","axis":null},"text":{"field":"areaName"}},"mark":"text"},{"layer":[{"width":300,"height":300,"encoding":{"x":{"field":"cx","type":"quantitative","scale":{"zero":false},"axis":null},"y":{"field":"cy","type":"quantitative","scale":{"zero":false},"axis":null},"tooltip":{"field":"areaName"}},"params":[{"name":"myZoom","select":"interval","bind":"scales"}],"mark":{"type":"circle","size":40,"color":"#eee"}},{"transform":[{"filter":{"param":"brush","empty":false}}],"encoding":{"x":{"field":"cx","type":"quantitative"},"y":{"field":"cy","type":"quantitative"},"color":{"field":"category","type":"quantitative","scale":{"scheme":{"name":"blueorange","extent":[0,1]}},"legend":null},"tooltip":{"field":"areaName"}},"mark":{"type":"circle","size":80,"opacity":0.7}}]}],"config":{"view":{"stroke":null}}}