{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","data":{"url":"https://melodylio.github.io/data/uniEnrolmentsD.csv"},"config":{"view":{"stroke":null},"facet":{"spacing":10}},"columns":4,"facet":{"field":"course","header":{"title":"Undergraduate Enrolment by Course Type in Singapore Public Universities (2000 - 2021)"}},"spec":{"width":150,"height":100,"layer":[{"encoding":{"color":{"field":"background","legend":null,"scale":{"domain":["female","male","1"],"range":["rgb(255, 0, 132)","rgb(25, 185, 212)","rgb(252, 248, 232)"]}}},"mark":{"type":"bar","opacity":0.2}},{"encoding":{"x":{"field":"year","type":"temporal","axis":null},"y":{"field":"students","type":"quantitative","axis":null,"title":""},"color":{"condition":{"param":"barSelection","field":"sex","scale":{"domain":["female","male","1"],"range":["rgb(255, 0, 132)","rgb(25, 185, 212)","rgb(252, 248, 232)"]},"legend":null},"value":"rgb(206,194,186)"},"tooltip":[{"field":"year","type":"temporal","format":"%Y"},{"field":"sex","type":"nominal"},{"field":"students","type":"quantitative"}]},"params":[{"name":"barSelection","select":{"type":"interval","encodings":["x"]}}],"mark":{"type":"point","filled":true}}]}}
{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","data":{"url":"https://melodylio.github.io/data/industryOverAge.csv"},"title":{"text":"Male and Female Employment in Different Industries (2000 - 2021)"},"config":{"view":{"stroke":null},"facet":{"spacing":10}},"columns":4,"facet":{"field":"industry","type":"nominal","header":{"title":null}},"spec":{"width":150,"height":100,"encoding":{"x":{"field":"year","type":"temporal","title":"","axis":{"grid":false}},"y":{"field":"age","type":"nominal","title":"","axis":{"labels":true}},"size":{"field":"numberOfWorkers","aggregate":"sum","type":"quantitative","scale":{"range":[0,120],"type":"pow","exponent":0.87}},"color":{"field":"sex","type":"nominal","scale":{"domain":["female","male"],"range":["rgb(255, 0, 132)","rgb(136, 196, 207)"]},"legend":null}},"mark":{"type":"point","filled":true,"opacity":0.8}}}
{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","data":{"url":"https://melodylio.github.io/data/workOccupationRQ3.csv"},"config":{"axisLeft":{"labelLimit":400},"axis":{"ticks":false},"view":{"stroke":null}},"transform":[{"filter":"datum.year == yearSelector"}],"params":[{"name":"yearSelector","value":2000,"bind":{"input":"range","min":2000,"max":2021,"step":1}}],"title":{"text":"Male and Female Workers in Different Occupation Type"},"width":400,"encoding":{"x":{"field":"numberOfWorkers","aggregate":"sum","stack":"normalize","title":"","axis":null},"y":{"field":"occupation","type":"nominal","title":""},"color":{"field":"sex","type":"nominal","scale":{"domain":["female","male"],"range":["rgb(252, 139, 152)","rgb(168, 216, 224)"]},"legend":null},"tooltip":[{"field":"sex","type":"nominal","title":"Sex"},{"field":"numberOfWorkers","type":"quantitative","title":"Number of Workers"},{"field":"percentage","title":"Percentage of Total Workers in this Occupation Type"}]},"mark":"bar"}
{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","width":400,"title":{"text":"Average Earnings between Males and Females [2000 - 2021]"},"config":{"view":{"stroke":null}},"data":{"url":"https://melodylio.github.io/data/averageEarnings.csv"},"encoding":{"x":{"field":"year","type":"temporal","title":"","axis":{"grid":false}}},"layer":[{"data":{"url":"https://melodylio.github.io/data/averageEarnings.csv"},"encoding":{"y":{"field":"earnings","aggregate":"sum","type":"quantitative","title":"","axis":{"grid":false}},"color":{"field":"sex","type":"nominal","scale":{"domain":["female","male"],"range":["rgb(252, 139, 152)","rgb(168, 216, 224)"]}}},"layer":[{"mark":"line"},{"transform":[{"filter":{"param":"hover","empty":false}}],"mark":"point"}]},{"params":[{"name":"hover","select":{"type":"point","fields":["year"],"on":"mouseover","clear":"mouseout","nearest":true}}],"transform":[{"pivot":"sex","value":"earnings","groupby":["year"]}],"encoding":{"opacity":{"condition":{"param":"hover","empty":false,"value":0.3},"value":0},"tooltip":[{"field":"female","type":"quantitative"},{"field":"male","type":"quantitative"}]},"mark":"rule"}]}
{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","height":800,"data":{"url":"https://melodylio.github.io/data/industryOverAge.csv"},"transform":[{"filter":"datum.year == yearSelector"}],"params":[{"name":"yearSelector","value":2000,"bind":{"input":"range","min":2000,"max":2021,"step":1}}],"title":{"text":"Workers in Different Industries by Age Group (2000-2021)"},"facet":{"field":"sex","type":"nominal","header":{"title":null}},"spec":{"width":150,"height":100,"config":{"view":{"stroke":null}},"encoding":{"x":{"field":"industry","type":"nominal","title":""},"y":{"field":"age","type":"ordinal","title":""},"color":{"field":"numberOfWorkers","aggregate":"sum","scale":{"scheme":"oranges"},"legend":{"title":"Number of Workers"}}},"mark":"bar"}}