text
stringlengths 331
391k
|
---|
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Names of countries imperfectly matched. US vs USA for example\", \"title\": {\"text\": \"World Map\", \"subtitle\": \"GDP per capita\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\", \"color\": \"black\"}, \"config\": {\"background\": \"white\", \"view\": {\"stroke\": \"transparent\"}}, \"width\": 300, \"height\": 250, \"data\": {\"url\": \"https://unpkg.com/world-atlas@1.1.4/world/110m.json\", \"format\": {\"type\": \"topojson\", \"feature\": \"countries\"}}, \"params\": [{\"name\": \"thisYear\", \"value\": 2010, \"bind\": {\"input\": \"range\", \"min\": 1980, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}], \"transform\": [{\"calculate\": \"parseInt(datum.id)\", \"as\": \"id_N\"}, {\"lookup\": \"id_N\", \"from\": {\"key\": \"id\", \"fields\": [\"alpha3\", \"name\"], \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/dataWorldCountryNamesIDs.json\"}}}, {\"lookup\": \"name\", \"from\": {\"data\": {\"url\": \"https://raw.githubusercontent.com/hyungkwonko/tmp-data/main/weoLongUnemp.csv\"}, \"key\": \"country\", \"fields\": [\"1980\", \"1981\", \"1982\", \"1983\", \"1984\", \"1985\", \"1986\", \"1987\", \"1988\", \"1989\", \"1990\", \"1991\", \"1992\", \"1993\", \"1994\", \"1995\", \"1996\", \"1997\", \"1998\", \"1999\", \"2000\", \"2001\", \"2002\", \"2003\", \"2004\", \"2005\", \"2006\", \"2007\", \"2008\", \"2009\", \"2010\", \"2011\", \"2012\", \"2013\", \"2014\", \"2015\", \"2016\", \"2017\", \"2018\", \"2019\", \"2020\", \"2021\", \"2022\", \"2023\", \"2024\", \"2025\", \"2026\", \"2027\"]}}, {\"fold\": [\"1980\", \"1981\", \"1982\", \"1983\", \"1984\", \"1985\", \"1986\", \"1987\", \"1988\", \"1989\", \"1990\", \"1991\", \"1992\", \"1993\", \"1994\", \"1995\", \"1996\", \"1997\", \"1998\", \"1999\", \"2000\", \"2001\", \"2002\", \"2003\", \"2004\", \"2005\", \"2006\", \"2007\", \"2008\", \"2009\", \"2010\", \"2011\", \"2012\", \"2013\", \"2014\", \"2015\", \"2016\", \"2017\", \"2018\", \"2019\", \"2020\", \"2021\", \"2022\", \"2023\", \"2024\", \"2025\", \"2026\", \"2027\"], \"as\": [\"Year\", \"Value\"]}, {\"calculate\": \"toNumber(datum.Value)\", \"as\": \"Value_N\"}, {\"filter\": \"datum.Year==thisYear\"}], \"projection\": {\"type\": \"naturalEarth1\"}, \"layer\": [{\"data\": {\"url\": \"https://raw.githubusercontent.com/timjordanRe/DataVisA2_RefugeeData/main/JSON/ne_110m_admin_0_countries.json\", \"format\": {\"type\": \"topojson\", \"feature\": \"ne_110m_admin_0_countries\"}}, \"mark\": {\"fill\": \"lightgray\", \"type\": \"geoshape\"}, \"encoding\": {\"fillOpacity\": {\"value\": 0.5}, \"color\": {\"value\": \"gray\"}}}, {\"mark\": {\"type\": \"geoshape\", \"stroke\": \"white\", \"strokeWidth\": 0.1}, \"encoding\": {\"tooltip\": {\"field\": \"name\"}, \"color\": {\"field\": \"Value_N\", \"type\": \"quantitative\", \"scale\": {\"scheme\": \"turbo\", \"domain\": [0, 60]}, \"legend\": {\"orient\": \"top-left\", \"direction\": \"vertical\"}}}}]}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Names of countries imperfectly matched. US vs USA for example\", \"title\": {\"text\": \"World Map\", \"subtitle\": [\"GDP per capita\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\", \"color\": \"black\"}, \"config\": {\"background\": \"white\", \"view\": {\"stroke\": \"transparent\"}}, \"width\": 600, \"height\": 300, \"data\": {\"url\": \"https://unpkg.com/world-atlas@1.1.4/world/110m.json\", \"format\": {\"type\": \"topojson\", \"feature\": \"countries\"}}, \"transform\": [{\"calculate\": \"parseInt(datum.id)\", \"as\": \"id_N\"}, {\"lookup\": \"id_N\", \"from\": {\"key\": \"id\", \"fields\": [\"alpha3\", \"name\"], \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/dataWorldCountryNamesIDs.json\"}}}, {\"lookup\": \"alpha3\", \"from\": {\"key\": \"country2\", \"fields\": [\"BCA\", \"NGDPDPC\"], \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/dataWEOallWideCountryCodes.csv\"}}}], \"projection\": {\"type\": \"naturalEarth1\"}, \"mark\": {\"type\": \"geoshape\", \"stroke\": \"white\", \"strokeWidth\": 0.1}, \"encoding\": {\"tooltip\": [{\"field\": \"name\", \"title\": \"Country\"}, {\"field\": \"NGDPDPC\", \"title\": \"GDP per capita\", \"type\": \"quantitative\", \"format\": \"$,.0f\"}], \"color\": {\"field\": \"NGDPDPC\", \"title\": \"US Dollars\", \"type\": \"quantitative\", \"scale\": {\"scheme\": \"turbo\", \"domain\": [0, 80000]}, \"legend\": {\"orient\": \"bottom\", \"direction\": \"horizontal\"}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Names of countries imperfectly matched. US vs USA for example\", \"title\": {\"text\": \"World Map\", \"subtitle\": [\"Matching problem 2\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\", \"color\": \"black\"}, \"config\": {\"background\": \"white\", \"view\": {\"stroke\": \"transparent\"}}, \"width\": 600, \"height\": 300, \"data\": {\"url\": \"https://unpkg.com/world-atlas@1.1.4/world/110m.json\", \"format\": {\"type\": \"topojson\", \"feature\": \"countries\"}}, \"transform\": [{\"calculate\": \"parseInt(datum.id)\", \"as\": \"id_N\"}, {\"lookup\": \"id_N\", \"from\": {\"key\": \"id\", \"fields\": [\"name\"], \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/dataWorldCountryNamesIDs.json\"}}}, {\"lookup\": \"name\", \"from\": {\"key\": \"Country\", \"fields\": [\"BCA\", \"NGDPDPC\"], \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/dataWEOallWide.csv\"}}}], \"projection\": {\"type\": \"naturalEarth1\"}, \"mark\": {\"type\": \"geoshape\", \"stroke\": \"white\", \"strokeWidth\": 0.1}, \"encoding\": {\"tooltip\": {\"field\": \"name\"}, \"color\": {\"field\": \"NGDPDPC\", \"type\": \"quantitative\", \"scale\": {\"scheme\": \"inferno\"}, \"legend\": {\"orient\": \"bottom\", \"direction\": \"horizontal\"}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"World Map\", \"subtitle\": [\"Matching problem 1\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\", \"color\": \"black\"}, \"config\": {\"background\": \"white\", \"view\": {\"stroke\": \"transparent\"}}, \"width\": 600, \"height\": 300, \"data\": {\"url\": \"https://unpkg.com/world-atlas@1.1.4/world/110m.json\", \"format\": {\"type\": \"topojson\", \"feature\": \"countries\"}}, \"transform\": [{\"lookup\": \"id\", \"from\": {\"key\": \"id\", \"fields\": [\"name\"], \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/dataWorldCountryNamesIDs.json\"}}}], \"projection\": {\"type\": \"naturalEarth1\"}, \"mark\": {\"type\": \"geoshape\", \"stroke\": \"white\", \"strokeWidth\": 0.1}, \"encoding\": {\"tooltip\": {\"field\": \"name\"}, \"color\": {\"condition\": {\"test\": \"datum['name'] === null\", \"value\": \"rgb(255, 255, 255)\"}, \"field\": \"name\", \"scale\": {\"scheme\": \"oranges\"}, \"legend\": null}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"width\": 500, \"height\": 400, \"description\": \"Bike hire station data from TfL open data api. Uses Vega-lite example data for London borough geojson and to overlay shortened borough names. Filter transform used to only show relevant inner London boroughs. Using Santander red.\", \"title\": {\"text\": \"Inner London cycle hire\", \"fontSize\": 12, \"subtitle\": [\"Santander bike docking stations. Source: TfL, 2021\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\"}, \"config\": {\"view\": {\"stroke\": \"transparent\"}}, \"layer\": [{\"data\": {\"url\": \"https://raw.githubusercontent.com/vega/vega/main/docs/data/londonBoroughs.json\", \"format\": {\"type\": \"topojson\", \"feature\": \"boroughs\"}}, \"transform\": [{\"filter\": {\"field\": \"id\", \"oneOf\": [\"Camden\", \"Greenwich\", \"Hackney\", \"Hammersmith and Fulham\", \"Islington\", \"Kensington and Chelsea\", \"Lambeth\", \"Lewisham\", \"Southwark\", \"Tower Hamlets\", \"Wandsworth\", \"Westminster\", \"Newham\", \"City of London\"]}}], \"mark\": {\"type\": \"geoshape\", \"stroke\": \"white\", \"strokeWidth\": 2}, \"encoding\": {\"color\": {\"value\": \"#eee\"}}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/vega/vega/main/docs/data/londonCentroids.json\", \"format\": {\"type\": \"json\"}}, \"transform\": [{\"filter\": {\"field\": \"name\", \"oneOf\": [\"Camden\", \"Greenwich\", \"Hackney\", \"Hammersmith and Fulham\", \"Islington\", \"Kensington and Chelsea\", \"Lambeth\", \"Lewisham\", \"Southwark\", \"Tower Hamlets\", \"Wandsworth\", \"Westminster\", \"Newham\", \"City of London\"]}}, {\"calculate\": \"indexof (datum.name,' ') > 0 ? substring(datum.name,0,indexof(datum.name, ' ')) : datum.name\", \"as\": \"bLabel\"}], \"mark\": \"text\", \"encoding\": {\"longitude\": {\"field\": \"cx\", \"type\": \"quantitative\"}, \"latitude\": {\"field\": \"cy\", \"type\": \"quantitative\"}, \"text\": {\"field\": \"bLabel\", \"type\": \"nominal\"}, \"size\": {\"value\": 8}, \"opacity\": {\"value\": 0.6}}}, {\"data\": {\"url\": \"https://api.tfl.gov.uk/BikePoint/\", \"format\": {\"type\": \"json\", \"property\": \"features\"}}, \"projection\": {\"type\": \"mercator\"}, \"mark\": \"circle\", \"encoding\": {\"longitude\": {\"field\": \"lon\", \"type\": \"quantitative\"}, \"latitude\": {\"field\": \"lat\", \"type\": \"quantitative\"}, \"size\": {\"value\": 6}, \"color\": {\"value\": \"#EA1D25\"}, \"tooltip\": {\"field\": \"commonName\"}}}]}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"width\": 500, \"height\": 400, \"description\": \"All crimes reported in Westminster Local Area District in Sep 22. Downloaded from API using polygon coordinates of LAD and overlayed on a filtered UK LAD map.\", \"title\": {\"text\": \"Westminster Crime Map\", \"fontSize\": 12, \"subtitle\": [\"All reported crimes, September 2022. Source: Police Crime API\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\"}, \"config\": {\"background\": \"white\", \"view\": {\"stroke\": \"transparent\"}}, \"layer\": [{\"data\": {\"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/UK%20Map%20Data/LAD_2021_20m.geojson\", \"format\": {\"property\": \"features\"}}, \"transform\": [{\"filter\": {\"field\": \"properties.LAD21NM\", \"oneOf\": [\"Westminster\"]}}], \"mark\": {\"type\": \"geoshape\", \"stroke\": \"white\", \"strokeWidth\": 2}, \"encoding\": {\"color\": {\"value\": \"#eee\"}}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/point_maps/allCrimes_Westminster_2022-09.csv\"}, \"projection\": {\"type\": \"mercator\"}, \"mark\": \"circle\", \"encoding\": {\"longitude\": {\"field\": \"Longitude\", \"type\": \"quantitative\"}, \"latitude\": {\"field\": \"Latitude\", \"type\": \"quantitative\"}, \"size\": {\"value\": 6}, \"color\": {\"field\": \"Crime Category\"}, \"tooltip\": [{\"field\": \"Crime Category\"}, {\"field\": \"Location\"}]}}]}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"width\": 500, \"height\": 400, \"description\": \"Police stop and search incidents within London borough boundary. Overlayed on Vega-lite example London GeoJSON. Metadata available to add filter - eg see tooltip\", \"title\": {\"text\": \"London stop and search hotspots\", \"fontSize\": 12, \"subtitle\": [\"All incidences, September 2022. Source: Police Crime API\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\"}, \"config\": {\"background\": \"white\", \"view\": {\"stroke\": \"transparent\"}}, \"layer\": [{\"data\": {\"url\": \"https://raw.githubusercontent.com/vega/vega/main/docs/data/londonBoroughs.json\", \"format\": {\"type\": \"topojson\", \"feature\": \"boroughs\"}}, \"mark\": {\"type\": \"geoshape\", \"stroke\": \"white\", \"strokeWidth\": 2}, \"encoding\": {\"color\": {\"value\": \"#eee\"}}}, {\"data\": {\"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/point_maps/stop_search_London.csv\"}, \"projection\": {\"type\": \"mercator\"}, \"mark\": \"circle\", \"encoding\": {\"longitude\": {\"field\": \"Longitude\", \"type\": \"quantitative\"}, \"latitude\": {\"field\": \"Latitude\", \"type\": \"quantitative\"}, \"size\": {\"value\": 5}, \"color\": {\"field\": \"Officer Defined Ethnicity\"}, \"tooltip\": [{\"field\": \"Age Range\"}, {\"field\": \"Gender\"}, {\"field\": \"Officer Defined Ethnicity\"}, {\"field\": \"Object of Search\"}, {\"field\": \"Location\"}]}}]}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"England: house prices\", \"subtitle\": [\"By electoral ward, Source: ONS\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\", \"color\": \"black\"}, \"config\": {\"background\": \"white\", \"view\": {\"stroke\": \"transparent\"}}, \"width\": 300, \"height\": 300, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/geoEngWards.json\", \"format\": {\"type\": \"topojson\", \"feature\": \"wards\"}}, \"transform\": [{\"lookup\": \"properties.WD13NM\", \"from\": {\"key\": \"WardName\", \"fields\": [\"y2022\"], \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/dataUKHousePrices.csv\"}}}, {\"calculate\": \"parseInt(datum.y2022)\", \"as\": \"housePrice\"}], \"projection\": {\"type\": \"mercator\"}, \"mark\": {\"type\": \"geoshape\", \"stroke\": \"white\", \"strokeWidth\": 0.1}, \"encoding\": {\"color\": {\"field\": \"housePrice\", \"type\": \"quantitative\", \"scale\": {\"scheme\": \"lightmulti\"}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"England: house prices\", \"subtitle\": [\"Median price, by electoral ward, Source: ONS\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\", \"color\": \"black\"}, \"config\": {\"background\": \"white\", \"view\": {\"stroke\": \"transparent\"}}, \"width\": 300, \"height\": 300, \"params\": [{\"name\": \"Select\", \"value\": \"HP_1995\", \"bind\": {\"input\": \"select\", \"options\": [\"HP_1995\", \"HP_2000\", \"HP_2010\", \"HP_2022\"]}}], \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/geoEngWards.json\", \"format\": {\"type\": \"topojson\", \"feature\": \"wards\"}}, \"transform\": [{\"lookup\": \"properties.WD13NM\", \"from\": {\"key\": \"WardName\", \"fields\": [\"y1995\", \"y2000\", \"y2010\", \"y2022\"], \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/dataUKHousePrices.csv\"}}}, {\"calculate\": \"parseInt(datum.y1995)\", \"as\": \"HP_1995\"}, {\"calculate\": \"parseInt(datum.y2000)\", \"as\": \"HP_2000\"}, {\"calculate\": \"parseInt(datum.y2010)\", \"as\": \"HP_2010\"}, {\"calculate\": \"parseInt(datum.y2022)\", \"as\": \"HP_2022\"}, {\"calculate\": \"datum[Select]\", \"as\": \"yearSelected\"}], \"projection\": {\"type\": \"mercator\"}, \"mark\": {\"type\": \"geoshape\", \"stroke\": \"white\", \"strokeWidth\": 0}, \"encoding\": {\"color\": {\"field\": \"yearSelected\", \"legend\": {\"title\": \"Price\", \"orient\": \"top-left\", \"direction\": \"vertical\"}, \"type\": \"quantitative\", \"scale\": {\"scheme\": \"lightmulti\", \"domain\": [0, 1000]}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"England - population\", \"subtitle\": [\"Population by electoral ward. Source: ONS\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\", \"color\": \"black\"}, \"config\": {\"background\": \"white\", \"view\": {\"stroke\": \"transparent\"}}, \"width\": 300, \"height\": 300, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/geoEngWards.json\", \"format\": {\"type\": \"topojson\", \"feature\": \"wards\"}}, \"transform\": [{\"lookup\": \"properties.WD13NM\", \"from\": {\"key\": \"wardName\", \"fields\": [\"Population\", \"Lacode\"], \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/dataUKPopWards.csv\"}}}], \"projection\": {\"type\": \"mercator\"}, \"mark\": {\"type\": \"geoshape\", \"stroke\": \"white\", \"strokeWidth\": 0}, \"encoding\": {\"color\": {\"field\": \"Population\", \"type\": \"quantitative\", \"scale\": {\"scheme\": \"lightmulti\"}, \"legend\": {\"orient\": \"top-left\", \"direction\": \"vertical\"}}, \"tooltip\": {\"field\": \"properties.WD13NM\"}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Unemployment\", \"title\": {\"text\": \"Unemployment\", \"subtitle\": \"Unemployment rate (aged 16 and over, seasonally adjusted)\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://api.ons.gov.uk/timeseries/mgsx/dataset/lms/data\", \"format\": {\"type\": \"json\", \"property\": \"months\"}}, \"height\": 300, \"width\": 345, \"mark\": {\"type\": \"line\", \"point\": false, \"interpolate\": \"monotone\", \"color\": \"orangered\"}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"ticks\": false}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"UK CPI data visualisation\", \"title\": {\"text\": \"Explore the CPI data\", \"subtitle\": [\"Freqency and size of price rises\", \"Size of circle in proportion to average long run annual price rise\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/prices/master/analysis/db_priceChangesByProductAnnualLatestYear.csv\"}, \"selection\": {\"paintbrush\": {\"type\": \"multi\", \"on\": \"mouseover\", \"nearest\": true}, \"grid\": {\"type\": \"interval\", \"bind\": \"scales\"}, \"divisionSelect\": {\"type\": \"multi\", \"fields\": [\"division_sh\"], \"bind\": \"legend\"}}, \"height\": 300, \"width\": 300, \"mark\": \"circle\", \"encoding\": {\"x\": {\"field\": \"up_sh12\", \"type\": \"quantitative\", \"title\": \"Share rising\"}, \"y\": {\"field\": \"up_ch12_median\", \"type\": \"quantitative\", \"title\": \"Median size of price rise\"}, \"color\": {\"field\": \"division_sh\", \"type\": \"ordinal\", \"title\": null, \"scale\": {\"scheme\": \"turbo\"}}, \"opacity\": {\"condition\": {\"selection\": \"divisionSelect\", \"value\": 0.7}, \"value\": 0}, \"size\": {\"condition\": {\"selection\": \"paintbrush\", \"value\": 800}, \"field\": \"up_ch12_longRunMean\", \"type\": \"nominal\", \"legend\": null}, \"tooltip\": [{\"field\": \"description\", \"type\": \"nominal\", \"title\": \"Item\"}, {\"field\": \"spanYears\", \"type\": \"quantitative\", \"title\": \"Years present\", \"format\": \".0f\"}, {\"field\": \"up_ch12_median\", \"type\": \"quantitative\", \"title\": \"Median price rise (2022)\", \"format\": \".0%\"}, {\"field\": \"up_ch12_mean\", \"type\": \"quantitative\", \"title\": \"Mean price rise (2022)\", \"format\": \".0%\"}, {\"field\": \"up_ch12_longRunMean\", \"type\": \"quantitative\", \"title\": \"Mean price rise (long run)\", \"format\": \".0%\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Women's football performance vs economic development\", \"subtitle\": [\"Human Development Index (x), FIFA ranking points (y). 2021 data\", \"Size of points based on popluation\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"config\": {\"background\": \"white\", \"view\": {\"stroke\": \"transparent\"}}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/football/dataWomensFIFA.csv\", \"format\": {\"type\": \"csv\"}}, \"mark\": {\"type\": \"circle\", \"color\": \"green\", \"opacity\": 0.7}, \"height\": 300, \"width\": 300, \"encoding\": {\"x\": {\"field\": \"HDI_2021\", \"type\": \"quantitative\", \"scale\": {\"domain\": [0.3, 1]}, \"axis\": {\"grid\": false}, \"title\": null}, \"y\": {\"field\": \"FIFA_rank_2021\", \"type\": \"quantitative\", \"scale\": {\"domain\": [300, 2200]}, \"axis\": {\"grid\": false}, \"title\": null}, \"size\": {\"field\": \"Population_2021\", \"type\": \"quantitative\", \"title\": \"Prison Rate\", \"scale\": {\"range\": [10, 800]}, \"legend\": null}, \"tooltip\": [{\"field\": \"country\", \"type\": \"ordinal\", \"title\": \"Country\"}, {\"field\": \"FIFA_rank_2021\", \"type\": \"quantitative\", \"title\": \"Rank\", \"format\": \".0f\"}, {\"field\": \"HDI_2021\", \"type\": \"quantitative\", \"title\": \"HDI\", \"format\": \".2f\"}, {\"field\": \"Population_2021\", \"type\": \"quantitative\", \"title\": \"Population\", \"format\": \",\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Various US measures state by state\", \"title\": {\"text\": \"Gun deaths and income - US states\", \"subtitle\": [\"Median income (x), and firearm deaths per 100k population (y)\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/usa/data_USsocioEconomic.csv\", \"format\": {\"type\": \"csv\"}}, \"mark\": {\"type\": \"circle\", \"size\": 150, \"color\": \"rgb(0,67,167)\", \"opacity\": 0.6}, \"height\": 300, \"width\": 250, \"encoding\": {\"x\": {\"field\": \"medIncome\", \"type\": \"quantitative\", \"scale\": {\"domain\": [40000, 80000]}, \"title\": null}, \"y\": {\"field\": \"FirearmDeaths\", \"type\": \"quantitative\", \"title\": null}, \"color\": {\"field\": \"GeographicDivision\", \"type\": \"ordinal\", \"scale\": {\"scheme\": \"set1\"}, \"legend\": {\"orient\": \"bottom\"}, \"title\": null}, \"size\": {\"field\": \"PrisonRate\", \"type\": \"quantitative\", \"title\": \"Prison Rate\", \"scale\": {\"range\": [5, 300]}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Various US measures state by state\", \"title\": {\"text\": \"Gun deaths and income - US states\", \"subtitle\": [\"Median income (x), and firearm deaths per 100k population (y)\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/usa/data_USsocioEconomic.csv\", \"format\": {\"type\": \"csv\"}}, \"mark\": {\"type\": \"circle\", \"size\": 150, \"color\": \"rgb(0,67,167)\", \"opacity\": 0.6}, \"height\": 300, \"width\": 300, \"encoding\": {\"x\": {\"field\": \"medIncome\", \"type\": \"quantitative\", \"scale\": {\"domain\": [40000, 80000]}, \"title\": null}, \"y\": {\"field\": \"FirearmDeaths\", \"type\": \"quantitative\", \"title\": null}, \"color\": {\"field\": \"GeographicDivision\", \"type\": \"ordinal\", \"scale\": {\"scheme\": \"set1\"}, \"legend\": {\"orient\": \"bottom\"}, \"title\": null}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Various US measures state by state\", \"title\": {\"text\": \"Gun deaths and income - US states\", \"subtitle\": [\"Median income (x), and firearm deaths per 100k population (y)\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/usa/data_USsocioEconomic.csv\", \"format\": {\"type\": \"csv\"}}, \"mark\": {\"type\": \"circle\", \"size\": 150, \"color\": \"rgb(0,67,167)\", \"opacity\": 0.6}, \"height\": 300, \"width\": 300, \"encoding\": {\"x\": {\"field\": \"medIncome\", \"type\": \"quantitative\", \"scale\": {\"domain\": [40000, 80000]}, \"title\": null}, \"y\": {\"field\": \"FirearmDeaths\", \"type\": \"quantitative\", \"title\": null}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Bank Rate\", \"title\": {\"text\": \"Bank Rate\", \"subtitle\": \"Bank of England's main policy rate (%). Source: BoE\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ukMacro/m3BankRate.csv\"}, \"height\": 300, \"width\": 300, \"mark\": {\"type\": \"line\", \"point\": false, \"interpolate\": \"step\", \"color\": \"red\"}, \"encoding\": {\"x\": {\"field\": \"Date\", \"type\": \"temporal\", \"title\": null}}, \"layer\": [{\"encoding\": {\"y\": {\"field\": \"Rate\", \"type\": \"quantitative\", \"title\": null}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"align\": false, \"interpolate\": \"step\", \"color\": \"red\"}}, {\"transform\": [{\"filter\": {\"selection\": \"hover\"}}], \"mark\": {\"type\": \"circle\", \"size\": 150, \"color\": \"red\"}}]}, {\"mark\": \"rule\", \"encoding\": {\"opacity\": {\"condition\": {\"value\": 0, \"selection\": \"hover\"}, \"value\": 0}, \"tooltip\": [{\"field\": \"Date\", \"type\": \"temporal\", \"format\": \"%b-%Y\", \"title\": \"Date\"}, {\"field\": \"Rate\", \"type\": \"quantitative\", \"format\": \",.0f\", \"title\": \"Bank Rate (%)\"}]}, \"selection\": {\"hover\": {\"type\": \"single\", \"fields\": [\"Date\"], \"nearest\": true, \"on\": \"mouseover\", \"empty\": \"none\", \"clear\": \"mouseout\"}}}]}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Inflation - official target\", \"subtitle\": \"CPI, % change over 12 months \", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"data\": {\"name\": \"myData\", \"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/ONSinflation/data_MM23-D7G7.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"color\": \"#00BFFF\", \"width\": 10, \"strokeWidth\": 2, \"opacity\": 1}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}, {\"encoding\": {\"x\": {\"aggregate\": \"max\", \"field\": \"date\", \"type\": \"temporal\"}, \"y\": {\"aggregate\": {\"argmax\": \"date\"}, \"field\": \"value\", \"type\": \"quantitative\"}, \"text\": {\"aggregate\": {\"argmax\": \"date\"}, \"field\": \"value\", \"type\": \"nominal\"}}, \"layer\": [{\"mark\": {\"type\": \"circle\", \"color\": \"#00BFFF\", \"size\": 100}}, {\"mark\": {\"type\": \"text\", \"align\": \"left\", \"dx\": 8, \"color\": \"#00BFFF\"}}]}]}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Ether: Price vs volume\", \"subtitle\": \"Daily ETH price and volume traded\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\"}, \"width\": 260, \"height\": 300, \"data\": {\"name\": \"myData\", \"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/crypto/dataETH.csv\"}, \"encoding\": {\"x\": {\"field\": \"Date\", \"title\": null, \"type\": \"temporal\"}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"point\": false, \"strokeWidth\": 1, \"width\": 1}, \"encoding\": {\"y\": {\"field\": \"Volume\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false, \"labelColor\": \"red\", \"format\": \",.5\"}}, \"color\": {\"datum\": \"Volume\", \"scale\": {\"range\": [\"blue\", \"red\"]}, \"legend\": {\"orient\": \"top-left\"}}}}, {\"mark\": {\"type\": \"line\", \"point\": false, \"strokeWidth\": 1}, \"encoding\": {\"y\": {\"field\": \"Price\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false, \"labelColor\": \"blue\", \"format\": \"$,.5\"}}, \"color\": {\"datum\": \"Price\", \"scale\": {\"range\": [\"orange\", \"hotpink\"]}, \"legend\": {\"orient\": \"top-left\"}}}}], \"resolve\": {\"scale\": {\"y\": \"independent\"}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/hyungkwonko/tmp-data/main/unemployment.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"title\": {\"text\": \"Unemployment level (16+)\", \"subtitle\": \"United Kingdom (thousands) seasonally adjusted\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"mark\": {\"type\": \"line\", \"color\": \"seagreen\", \"strokeWidth\": 2, \"opacity\": 1}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Foreign Direct Investment - inward\", \"subtitle\": [\"Total FDI in the UK (\\u00a3, billions). [ONS, PB-N2SA]\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 280, \"height\": 300, \"data\": {\"url\": \"https://raw.githubusercontent.com/hyungkwonko/tmp-data/main/investment.json\", \"format\": {\"type\": \"json\", \"property\": \"years\"}}, \"params\": [{\"name\": \"minYear\", \"value\": 1987, \"bind\": {\"input\": \"range\", \"min\": 1987, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2021, \"bind\": {\"input\": \"range\", \"min\": 1987, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"transform\": [{\"calculate\": \"datum.value/1000\", \"as\": \"billions\"}, {\"filter\": \"datum.date>=minYear\"}, {\"filter\": \"datum.date<=maxYear\"}], \"mark\": {\"type\": \"line\", \"color\": \"#00BFFF\", \"strokeWidth\": 2}, \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"billions\", \"type\": \"quantitative\", \"title\": null}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Creates year variable, then defined parameters on this and adds sliders.\", \"title\": {\"text\": \"Inflation - US\", \"subtitle\": \"All items, FRED series: CPIAUCSL_PC1\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"mark\": {\"type\": \"line\", \"color\": \"rgb(0,112,192)\", \"strokeWidth\": 2, \"opacity\": 1}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/usa/data_FRED_CPIAUCSL.csv\"}, \"transform\": [{\"calculate\": \"year(datum.Date)\", \"as\": \"year\"}, {\"filter\": \"datum.year>=minYear\"}, {\"filter\": \"datum.year<=maxYear\"}, {\"calculate\": \"datum.CPIAUCSL_PC1/100\", \"as\": \"value\"}], \"params\": [{\"name\": \"minYear\", \"value\": 1989, \"bind\": {\"input\": \"range\", \"min\": 1963, \"max\": 2022, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2022, \"bind\": {\"input\": \"range\", \"min\": 1963, \"max\": 2022, \"step\": 1, \"name\": \"End year:\"}}], \"encoding\": {\"x\": {\"field\": \"Date\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"format\": \"%\"}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Comparing four economies\", \"subtitle\": [\"GDP, constant prices. National currencies. Source: IMF.\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/fourCountriesGDP.csv\"}, \"transform\": [{\"fold\": [\"Kenya\", \"Congo_DR\", \"UK\", \"Japan\"], \"as\": [\"country\", \"GDP\"]}], \"height\": 120, \"width\": 120, \"mark\": {\"type\": \"line\", \"strokeWidth\": 2}, \"encoding\": {\"x\": {\"field\": \"Year\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false}}, \"y\": {\"field\": \"GDP\", \"type\": \"quantitative\", \"title\": null}, \"facet\": {\"field\": \"country\", \"columns\": 2, \"title\": null}}, \"resolve\": {\"scale\": {\"y\": \"independent\"}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Comparing four economies\", \"subtitle\": [\"GDP, constant prices. Rebased, 1980=100. Source: IMF.\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/fourCountriesGDP.csv\"}, \"transform\": [{\"calculate\": \"datum.Japan/273862.7*100\", \"as\": \"Japan_Index\"}, {\"calculate\": \"datum.UK/915.042*100\", \"as\": \"UK_Index\"}, {\"calculate\": \"datum.Kenya/2112.19*100\", \"as\": \"Kenya_Index\"}, {\"calculate\": \"datum.Congo_DR/8372.44*100\", \"as\": \"CongoDR_Index\"}], \"repeat\": {\"layer\": [\"Kenya_Index\", \"CongoDR_Index\", \"UK_Index\", \"Japan_Index\"]}, \"height\": 300, \"width\": 300, \"spec\": {\"mark\": {\"type\": \"line\", \"strokeWidth\": 2}, \"encoding\": {\"x\": {\"field\": \"Year\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false}}, \"y\": {\"field\": {\"repeat\": \"layer\"}, \"type\": \"quantitative\", \"title\": null}, \"color\": {\"datum\": {\"repeat\": \"layer\"}, \"scale\": {\"range\": [\"black\", \"green\", \"orange\", \"pink\"]}, \"legend\": {\"orient\": \"top-left\", \"fillColor\": \"white\"}}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://api.economicsobservatory.com/gbr/unem\", \"format\": {\"type\": \"json\", \"property\": \"raw.years\"}}, \"title\": {\"text\": \"Unemployment level (16+)\", \"subtitle\": \"United Kingdom (thousands) seasonally adjusted\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"mark\": {\"type\": \"line\", \"color\": \"seagreen\", \"strokeWidth\": 2, \"opacity\": 1}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Sugar 4b\", \"width\": 260, \"height\": 300, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/observatory/main/sugar_C4b.csv\"}, \"encoding\": {\"x\": {\"field\": \"Sugar intensity (g per 100ml)\", \"type\": \"nominal\", \"sort\": [\"0\"], \"title\": \"Sugar intensity (g per 100g)\", \"axis\": {\"labelAngle\": 60, \"labelFontSize\": 6}}}, \"layer\": [{\"mark\": {\"opacity\": 0.5, \"type\": \"bar\", \"color\": \"#e6224b\"}, \"encoding\": {\"y\": {\"field\": \"Number of products \", \"type\": \"quantitative\", \"scale\": {\"domain\": [0, 350]}, \"title\": \"Number of products\", \"axis\": {\"titleColor\": \"#e6224b\"}}}}, {\"mark\": {\"stroke\": \"#36b7b4\", \"type\": \"line\", \"interpolate\": \"monotone\"}, \"encoding\": {\"y\": {\"field\": \"Tax (pence per g sugar)\", \"type\": \"quantitative\", \"title\": \"Tax (pence per g sugar)\", \"axis\": {\"titleColor\": \"#36b7b4\"}}}}], \"resolve\": {\"scale\": {\"y\": \"independent\"}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/observatory/main/DATA_BP_C2_formatted.csv\"}, \"width\": {\"step\": 15}, \"height\": 275, \"mark\": \"bar\", \"encoding\": {\"column\": {\"field\": \"Quarter\", \"type\": \"ordinal\", \"spacing\": 0, \"title\": null}, \"y\": {\"aggregate\": \"sum\", \"field\": \"Value\", \"title\": \"GDP growth versus 2019Q4 (%)\", \"scale\": {\"domain\": [-25, 15]}}, \"x\": {\"field\": \"Nation\", \"axis\": {\"title\": \"\", \"labelColor\": \"white\", \"ticks\": false}, \"sort\": \"-y\"}, \"color\": {\"field\": \"Nation\", \"scale\": {\"range\": [\"#122b39\", \"#00a767\", \"#179fdb\", \"#e6224b\"]}, \"legend\": {\"orient\": \"top-left\"}}}, \"config\": {\"view\": {\"stroke\": \"transparent\"}, \"axis\": {\"domainWidth\": 1}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/MW17668/MW17668.github.io/main/myDataJuly1.csv\"}, \"mark\": \"bar\", \"width\": 250, \"height\": 300, \"title\": {\"text\": \"Food - CO2 greenhouse gas emissions\", \"subtitle\": \"Kg of CO2 emitted per kg of food, source: Our World in Data\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"encoding\": {\"y\": {\"field\": \"Entity\", \"sort\": \"-x\", \"type\": \"ordinal\", \"title\": null}, \"x\": {\"field\": \"food_emissions\", \"title\": null, \"type\": \"quantitative\"}, \"color\": {\"field\": \"Type\", \"type\": \"nominal\", \"legend\": {\"orient\": \"bottom-right\"}, \"scale\": {\"domain\": [\"Land Use\", \"Farm\", \"Animal Feed\", \"Processing\", \"Transport\", \"Retail\", \"Packaging\"], \"scheme\": \"yellowgreenblue\"}, \"title\": \"Emissions from:\"}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/MW17668/MW17668.github.io/main/myDataJuly1.csv\"}, \"mark\": \"bar\", \"width\": 250, \"height\": 300, \"title\": {\"text\": \"Food - CO2 greenhouse gas emissions\", \"subtitle\": \"Kg of CO2 emitted per kg of food, source: Our World in Data\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"encoding\": {\"x\": {\"field\": \"Entity\", \"sort\": \"-y\", \"type\": \"ordinal\", \"title\": null}, \"y\": {\"field\": \"food_emissions\", \"title\": null, \"type\": \"quantitative\"}, \"color\": {\"field\": \"Type\", \"type\": \"nominal\", \"legend\": {\"orient\": \"top-right\"}, \"scale\": {\"domain\": [\"Land Use\", \"Farm\", \"Animal Feed\", \"Processing\", \"Transport\", \"Retail\", \"Packaging\"], \"scheme\": \"yellowgreenblue\"}, \"title\": \"Emissions from:\"}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Chart runs from GitHub JSON rather than API for stability.\", \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/library/data_footballAPI.json\", \"format\": {\"type\": \"json\", \"property\": \"data\"}}, \"title\": {\"text\": \"Premiership - venues\", \"subtitle\": [\"Stadium capacity, 20/21 season\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"params\": [{\"name\": \"highlight\", \"select\": {\"type\": \"point\", \"on\": \"mouseover\"}}], \"mark\": {\"type\": \"bar\", \"color\": \"rgba(0,67,167, 1)\"}, \"height\": 300, \"width\": 160, \"encoding\": {\"x\": {\"field\": \"venue.capacity\", \"type\": \"quantitative\", \"aggregate\": \"mean\", \"title\": null}, \"y\": {\"field\": \"venue.name\", \"type\": \"ordinal\", \"title\": null}, \"fillOpacity\": {\"condition\": {\"param\": \"highlight\", \"value\": 1}, \"value\": 0.6}, \"tooltip\": [{\"field\": \"home_team.name\", \"title\": \"Team\"}, {\"field\": \"venue.city\", \"title\": \"City\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Green Party representation \\u2013 European Parliament \", \"subtitle\": \"% of seats won by election. Source: European Parliament\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/chartENV19.csv\"}, \"height\": 300, \"width\": 260, \"mark\": {\"type\": \"bar\", \"color\": \"#86d0bb\"}, \"encoding\": {\"x\": {\"field\": \"Time\", \"type\": \"nominal\", \"axis\": {\"title\": null, \"grid\": false, \"ticks\": false, \"labelAngle\": 45}}, \"y\": {\"field\": \"Value\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Covid Cases: English regions - click on legend\", \"subtitle\": \"New cases by specimen date. Rolling weekly rate per 100k population.\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"description\": \"Coronavirus cases\", \"data\": {\"url\": \"https://api.coronavirus.data.gov.uk/v2/data?areaType=region&metric=newCasesBySpecimenDateRollingRate&format=csv\", \"format\": {\"type\": \"csv\"}}, \"height\": 300, \"width\": 300, \"mark\": {\"type\": \"area\", \"point\": false}, \"selection\": {\"region\": {\"type\": \"multi\", \"fields\": [\"areaName\"], \"bind\": \"legend\"}}, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false}}, \"y\": {\"field\": \"newCasesBySpecimenDateRollingRate\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false}}, \"color\": {\"field\": \"areaName\", \"type\": \"nominal\", \"scale\": {\"scheme\": \"inferno\"}, \"title\": null, \"legend\": {\"orient\": \"bottom\", \"columns\": 2, \"fillColor\": \"#FcFdFd\"}}, \"opacity\": {\"condition\": {\"selection\": \"region\", \"value\": 1}, \"value\": 0.1}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description0\": \"Example using ONS API\", \"description1\": \"Transform using the timeParse command\", \"description2\": \"Two sliders sets two parameters for the min and max year\", \"description3\": \"These parameters are then used to fiter the data\", \"description4\": \"The filtered value determines the domain of the y axis\", \"title\": {\"text\": \"The size of the UK economy - interactive\", \"subtitle\": \"Nominal GDP, quarterly. Source: ONS (YBHA)\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"data\": {\"name\": \"myData\", \"url\": \"https://api.ons.gov.uk/timeseries/ybha/dataset/pn2/data\", \"format\": {\"type\": \"json\", \"property\": \"quarters\"}}, \"mark\": {\"type\": \"line\", \"color\": \"red\", \"strokeWidth\": 2, \"opacity\": 1}, \"transform\": [{\"calculate\": \"substring(datum.quarter,1)*3-1\", \"as\": \"quarter_n\"}, {\"calculate\": \"join([datum.year, datum.quarter_n],['-'])\", \"as\": \"date2\"}, {\"calculate\": \"timeParse(datum.date2, '%Y-%m')\", \"as\": \"date3\"}, {\"filter\": \"datum.year>minYear\"}, {\"filter\": \"datum.year<maxYear\"}], \"params\": [{\"name\": \"minYear\", \"value\": 1955, \"bind\": {\"input\": \"range\", \"min\": 1955, \"max\": 2021, \"step\": 1, \"name\": \"Start year:\"}}, {\"name\": \"maxYear\", \"value\": 2021, \"bind\": {\"input\": \"range\", \"min\": 1955, \"max\": 2021, \"step\": 1, \"name\": \"End year:\"}}], \"encoding\": {\"x\": {\"field\": \"date3\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": {\"data\": \"myData\", \"field\": \"value\"}}}, \"tooltip\": [{\"field\": \"date3\", \"title\": \"Date\", \"type\": \"temporal\"}, {\"field\": \"value\", \"title\": \"GDP (\\u00a3m)\", \"type\": \"quantitative\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/festivalTickets2022.csv\"}, \"title\": {\"text\": \"Festival of Economics\", \"subtitle\": \"Ticket sales\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"middle\", \"color\": \"black\"}, \"mark\": {\"type\": \"arc\", \"innerRadius\": 22}, \"transform\": [{\"calculate\": \"datum.Sold/datum.Total\", \"as\": \"Gone\"}, {\"calculate\": \"1 - datum.Gone\", \"as\": \"Remaining\"}, {\"fold\": [\"Gone\", \"Remaining\"], \"as\": [\"status\", \"value\"]}], \"height\": 30, \"width\": 30, \"encoding\": {\"theta\": {\"field\": \"value\", \"type\": \"quantitative\"}, \"facet\": {\"field\": \"Title\", \"title\": null, \"type\": \"nominal\", \"columns\": 5}, \"color\": {\"field\": \"status\", \"title\": null, \"type\": \"nominal\", \"scale\": {\"range\": [\"green\", \"orange\"]}, \"legend\": {\"orient\": \"top\"}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"SAS litter\", \"title\": {\"text\": \"Pay in US prisons\", \"subtitle\": [\"Hourly pay (\\u00a2) Source: PrisonPolicy.org\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/extreme/data_USstatesPrisonPay.csv\"}, \"transform\": [{\"calculate\": \"datum.RegularJobLow*100\", \"as\": \"regularLowCents\"}], \"mark\": {\"type\": \"bar\", \"color\": \"rgb(0,47,167)\", \"strokeWidth\": 2, \"opacity\": 1}, \"height\": 450, \"width\": 350, \"encoding\": {\"y\": {\"field\": \"State\", \"type\": \"ordinal\", \"sort\": \"x\", \"title\": null}, \"x\": {\"field\": \"regularLowCents\", \"type\": \"quantitative\", \"title\": null}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Aceh - growth rates\", \"subtitle\": [\"Annual average, 4 year periods, non-oil GDP\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"#179fdb\", \"subtitleColor\": \"#179fdb\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/extreme/acehGDP.csv\"}, \"config\": {\"background\": \"#122b39\", \"view\": {\"stroke\": \"transparent\"}}, \"height\": 300, \"width\": 300, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"nominal\", \"title\": null, \"axis\": {\"labelAngle\": 0, \"domainColor\": \"dimgrey\", \"labelColor\": \"#00a767\", \"tickColor\": \"whitesmoke\"}}}, \"layer\": [{\"mark\": {\"type\": \"bar\", \"color\": \"orange\", \"strokeWidth\": 2, \"opacity\": 1}, \"encoding\": {\"y\": {\"field\": \"growth\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"format\": \"%\", \"grid\": false, \"domainColor\": \"dimgrey\", \"labelColor\": \"#00a767\", \"tickColor\": \"whitesmoke\"}}}}, {\"mark\": {\"type\": \"text\", \"align\": \"center\", \"y\": 0.06, \"color\": \"whitesmoke\"}, \"encoding\": {\"text\": {\"field\": \"label\"}}}]}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Drugs deaths in Scotland\", \"subtitle\": \"Annual deaths with drugs as reported cause. Source: NRS\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"whitesmoke\", \"subtitleColor\": \"whitesmoke\"}, \"config\": {\"background\": \"#122b39\", \"view\": {\"stroke\": \"transparent\"}}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/extreme/data_Glasgow_ScottishDrugDeaths.csv\"}, \"repeat\": {\"layer\": [\"All\", \"Heroin\", \"Methadone\", \"Benzodiazepines\", \"Gabapentin/Pregabalin\", \"Cocaine\", \"Ectasy\", \"Amphetamines\", \"Alcohol\"]}, \"spec\": {\"height\": 300, \"width\": 300, \"mark\": {\"type\": \"line\", \"point\": true, \"strokeWidth\": 2}, \"encoding\": {\"x\": {\"field\": \"Year\", \"type\": \"temporal\", \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"domainColor\": \"dimgrey\", \"labelColor\": \"whitesmoke\", \"tickColor\": \"pink\", \"gridColor\": \"dimgrey\"}}, \"y\": {\"field\": {\"repeat\": \"layer\"}, \"type\": \"quantitative\", \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"domainColor\": \"dimgrey\", \"labelColor\": \"whitesmoke\", \"tickColor\": \"pink\", \"gridColor\": \"dimgrey\"}, \"title\": null}, \"color\": {\"datum\": {\"repeat\": \"layer\"}, \"legend\": {\"orient\": \"top-left\", \"labelColor\": \"whitesmoke\"}, \"scale\": {\"scheme\": \"set1\"}}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Glasgow scatterplot\", \"title\": {\"text\": \"Glasgow: deprivation and life expectancy\", \"subtitle\": [\"% of residents income deprived (x) and male life expectancy (y)\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"subtitleColor\": \"white\", \"anchor\": \"start\", \"color\": \"white\"}, \"config\": {\"background\": \"#122b39\", \"view\": {\"stroke\": \"transparent\"}}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/extreme/glasgowHealthData.csv\"}, \"mark\": {\"type\": \"circle\", \"color\": \"hotpink\", \"size\": 100}, \"height\": 300, \"width\": 300, \"encoding\": {\"x\": {\"field\": \"incomeDeprevation\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"domainColor\": \"dimgrey\", \"labelColor\": \"#00a767\", \"tickColor\": \"pink\", \"gridColor\": \"dimgrey\", \"format\": \"%\"}}, \"y\": {\"field\": \"maleLE\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": [60, 85]}, \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"domainColor\": \"dimgrey\", \"labelColor\": \"#00a767\", \"tickColor\": \"pink\", \"gridColor\": \"dimgrey\", \"format\": \"\"}}, \"tooltip\": [{\"field\": \"areaName\", \"title\": \"Area\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Aceh - growth rates\", \"subtitle\": [\"Annual average, 4 year periods, non-oil GDP\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/extreme/acehGDP.csv\"}, \"config\": {\"background\": \"white\", \"view\": {\"stroke\": \"transparent\"}}, \"height\": 300, \"width\": 300, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"nominal\", \"title\": null, \"axis\": {\"labelAngle\": 0}}}, \"layer\": [{\"mark\": {\"type\": \"bar\", \"color\": \"orange\", \"strokeWidth\": 2, \"opacity\": 1}, \"encoding\": {\"y\": {\"field\": \"growth\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"format\": \"%\", \"grid\": false}}}}, {\"mark\": {\"type\": \"text\", \"align\": \"center\", \"y\": 0.06}, \"encoding\": {\"text\": {\"field\": \"label\"}}}]}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/MW17668/MW17668.github.io/main/myDataJuly1.csv\"}, \"mark\": \"bar\", \"width\": 250, \"height\": 300, \"title\": {\"text\": \"Food - CO2 greenhouse gas emissions\", \"subtitle\": \"Kg of CO2 emitted per kg of food, source: Our World in Data\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"encoding\": {\"y\": {\"field\": \"Entity\", \"sort\": \"-x\", \"type\": \"ordinal\", \"title\": null}, \"x\": {\"field\": \"food_emissions\", \"title\": null, \"type\": \"quantitative\"}, \"color\": {\"field\": \"Type\", \"type\": \"nominal\", \"legend\": {\"orient\": \"bottom-right\"}, \"scale\": {\"domain\": [\"Land Use\", \"Farm\", \"Animal Feed\", \"Processing\", \"Transport\", \"Retail\", \"Packaging\"], \"scheme\": \"yellowgreenblue\"}, \"title\": \"Emissions from:\"}, \"tooltip\": [{\"field\": \"Entity\", \"type\": \"nominal\", \"title\": \"Food\"}, {\"field\": \"food_emissions\", \"type\": \"quantitative\", \"title\": \"Emissions\"}, {\"field\": \"Type\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"width\": 300, \"height\": 300, \"data\": {\"url\": \"https://raw.githubusercontent.com/kate-lucas/kate-lucas.github.io/main/finalfishdata.csv\"}, \"title\": {\"text\": \"Fish caught - by source\", \"subtitle\": \"World fisheries and aquaculture production, tonnes (m). Source: FAO\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"mark\": \"area\", \"encoding\": {\"x\": {\"timeUnit\": \"year\", \"field\": \"Date\", \"axis\": {\"format\": \"%Y\", \"grid\": false}, \"title\": \"\"}, \"y\": {\"aggregate\": \"sum\", \"field\": \"Value\", \"axis\": {\"grid\": false}, \"title\": null}, \"color\": {\"field\": \"Type\", \"scale\": {\"scheme\": \"yellowgreenblue\"}, \"title\": null, \"legend\": {\"orient\": \"top-left\"}}, \"tooltip\": [{\"field\": \"Date\", \"type\": \"nominal\", \"title\": \"Year\", \"timeUnit\": \"year\"}, {\"field\": \"Value\", \"type\": \"quantitative\", \"title\": \"Tonnes of fish (m)\"}, {\"field\": \"Type\", \"type\": \"nominal\", \"title\": \"Type of production\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Fish caught - by continent\", \"subtitle\": \"Million tonnes. Source: Our World in Data\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 280, \"height\": 300, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/environment/greenChart4.csv\"}, \"mark\": \"area\", \"encoding\": {\"x\": {\"timeUnit\": \"year\", \"field\": \"Time\", \"title\": null, \"axis\": {\"format\": \"%Y\", \"grid\": false}}, \"y\": {\"aggregate\": \"sum\", \"field\": \"Value\", \"title\": null, \"axis\": {\"grid\": false}}, \"color\": {\"field\": \"Region\", \"title\": null, \"scale\": {\"scheme\": \"yellowgreenblue\"}, \"legend\": {\"orient\": \"top-left\"}, \"type\": \"nominal\"}, \"tooltip\": [{\"field\": \"Time\", \"type\": \"temporal\", \"timeUnit\": \"year\", \"title\": \"Year\"}, {\"field\": \"Value\", \"type\": \"quantitative\", \"title\": \"Fish caught (million tonnes)\"}, {\"field\": \"Region\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/chartENV21.csv\"}, \"mark\": \"bar\", \"width\": 270, \"height\": 300, \"title\": {\"text\": \"Food - annual meat consumption by country\", \"subtitle\": \"Kg per capita, by food type, 2020. Source: OECD\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"encoding\": {\"y\": {\"field\": \"Country\", \"sort\": \"-x\", \"type\": \"ordinal\", \"title\": null}, \"x\": {\"field\": \"Value\", \"title\": null, \"type\": \"quantitative\"}, \"color\": {\"field\": \"Type\", \"type\": \"nominal\", \"legend\": {\"orient\": \"bottom-right\"}, \"scale\": {\"domain\": [\"Beef\", \"Pork\", \"Poultry\", \"Mutton/lamb\"], \"scheme\": \"yellowgreenblue\"}, \"title\": null}, \"tooltip\": [{\"field\": \"Country\", \"type\": \"nominal\"}, {\"field\": \"Value\", \"type\": \"quantitative\", \"title\": \"Kg per capita\"}, {\"field\": \"Type\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Green Party\", \"title\": {\"text\": \"Green Party representation \\u2013 European Parliament \", \"subtitle\": \"% of seats won by election. Source: European Parliament\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/chartENV19.csv\"}, \"height\": 300, \"width\": 260, \"mark\": {\"type\": \"bar\", \"color\": \"#86d0bb\"}, \"encoding\": {\"x\": {\"field\": \"Time\", \"type\": \"nominal\", \"sort\": \"\", \"axis\": {\"title\": null, \"grid\": false, \"ticks\": false, \"labelAngle\": 45}}, \"y\": {\"field\": \"Value\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false}}, \"tooltip\": [{\"field\": \"Time\", \"type\": \"nominal\", \"title\": \"Election\"}, {\"field\": \"\", \"type\": \"nominal\"}, {\"field\": \"Value\", \"type\": \"quantitative\", \"title\": \"Green seats in EU Parliament (%)\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Emissions per capita\", \"title\": {\"text\": \"CO2 per capita emissions by region\", \"subtitle\": \"Metric tons per capita (2019). Source: Center for International Climate Research.\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/chartENV18.csv\"}, \"mark\": {\"type\": \"bar\", \"color\": \"#86d0bb\", \"strokeWidth\": 2, \"opacity\": 1}, \"height\": 300, \"width\": 180, \"encoding\": {\"y\": {\"field\": \"Region\", \"type\": \"ordinal\", \"sort\": \"-x\", \"title\": null}, \"x\": {\"field\": \"Value\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": [0, 16]}}, \"tooltip\": [{\"field\": \"Region\", \"type\": \"nominal\", \"title\": \"Region\"}, {\"field\": \"Value\", \"type\": \"quantitative\", \"title\": \"C02 emissions (metric tons per capita)\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Wild fires\", \"title\": {\"text\": \"California wildfires - top 20 by size\", \"subtitle\": \"Acres. Source: Cal fire\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/chartENV16.csv\"}, \"height\": 300, \"width\": 235, \"mark\": {\"type\": \"bar\", \"color\": \"#86d0bb\"}, \"encoding\": {\"x\": {\"field\": \"Name\", \"type\": \"nominal\", \"sort\": \"-y\", \"axis\": {\"title\": null, \"grid\": false, \"ticks\": false, \"labelAngle\": 45}}, \"y\": {\"field\": \"Size\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false}}, \"tooltip\": [{\"field\": \"Date\", \"type\": \"nominal\"}, {\"field\": \"Name\", \"type\": \"nominal\"}, {\"field\": \"Size\", \"type\": \"quantitative\", \"title\": \"Size of fire (acres)\"}, {\"field\": \"Deaths\", \"type\": \"quantitative\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/chartENV15b.csv\"}, \"title\": {\"text\": \"GDP loss by temperature increase scenario\", \"subtitle\": \"By most affected country. Source: Swiss Re\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": {\"step\": 10}, \"height\": 300, \"mark\": \"bar\", \"encoding\": {\"column\": {\"field\": \"Scenario\", \"type\": \"nominal\", \"spacing\": 1, \"title\": null}, \"y\": {\"field\": \"Value 1\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": [-13, 0.5]}, \"axis\": {\"grid\": false}}, \"x\": {\"field\": \"Country\", \"type\": \"nominal\", \"axis\": {\"title\": \"\", \"labelColor\": \"white\", \"ticks\": false}, \"sort\": \"-y\"}, \"color\": {\"field\": \"Country\", \"scale\": {\"scheme\": \"yellowgreenblue\"}, \"legend\": {\"orient\": \"right\"}}, \"tooltip\": [{\"field\": \"Scenario\", \"type\": \"nominal\"}, {\"field\": \"Value 1\", \"type\": \"quantitative\", \"title\": \"GDP loss (%)\"}, {\"field\": \"Country\", \"type\": \"nominal\"}]}, \"config\": {\"view\": {\"stroke\": \"transparent\"}, \"axis\": {\"domainWidth\": 1}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Forest area\", \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/chartENV14.csv\"}, \"title\": {\"text\": \"Forest area - by country\", \"subtitle\": \"% change square km (Base year = 1990). Source: World Bank\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"height\": 300, \"width\": 300, \"mark\": \"line\", \"encoding\": {\"x\": {\"field\": \"Year\", \"type\": \"temporal\", \"axis\": {\"grid\": false}, \"title\": null}, \"y\": {\"field\": \"Value 2\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": [-40, 5]}, \"axis\": {\"grid\": false}}, \"color\": {\"field\": \"Country\", \"type\": \"nominal\", \"legend\": {\"orient\": \"bottom-left\", \"title\": null}, \"scale\": {\"scheme\": \"yellowgreenblue\"}}, \"tooltip\": [{\"field\": \"Year\", \"type\": \"temporal\", \"title\": \"Date\", \"timeUnit\": \"year\"}, {\"field\": \"Value 2\", \"type\": \"quantitative\", \"title\": \"Reduction of forest area (%)\"}, {\"field\": \"Value 1\", \"type\": \"quantitative\", \"title\": \"Forest area (million square km)\"}, {\"field\": \"Country\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/chartENV10.csv\"}, \"mark\": \"bar\", \"width\": 300, \"height\": 300, \"title\": {\"text\": \"UK CO2 emissions \\u2013 by sector\", \"subtitle\": \"Millon tonnes. 1990-2019. Source: Gov.uk (BEIS)\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"transform\": [{\"filter\": {\"selection\": \"SectorSelector\"}}, {\"filter\": {\"field\": \"Sector\", \"oneOf\": [\"Agriculture\", \"Business\", \"Energy Supply\", \"Residential\", \"Transport\", \"Waste management\"]}}], \"selection\": {\"SectorSelector\": {\"type\": \"single\", \"fields\": [\"Sector\"], \"bind\": {\"input\": \"select\", \"options\": [null, \"Agriculture\", \"Business\", \"Energy Supply\", \"Residential\", \"Transport\", \"Waste management\"], \"name\": \"Choose sector\"}}}, \"encoding\": {\"x\": {\"field\": \"Year\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false}}, \"y\": {\"field\": \"Value\", \"title\": null, \"type\": \"quantitative\", \"xxscale\": {\"domain\": [0, 900]}, \"axis\": {\"grid\": false}}, \"color\": {\"field\": \"Sector\", \"type\": \"nominal\", \"legend\": {\"orient\": \"top-right\", \"columns\": 2}, \"scale\": {\"scheme\": \"yellowgreenblue\"}, \"title\": null}, \"tooltip\": [{\"field\": \"Sector\"}, {\"field\": \"Year\", \"type\": \"temporal\", \"timeUnit\": \"year\", \"title\": \"Year\"}, {\"field\": \"Value\", \"type\": \"quantitative\", \"title\": \"CO2 Emissions (millon tonnes)\"}, {\"field\": \"Value_2\", \"type\": \"quantitative\", \"title\": \"Share of annual total(%)\", \"format\": \".3\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Chart that uses repeated layers to make multiple calls to an API\", \"title\": {\"text\": \"Unemployment: US and UK\", \"subtitle\": \"From the ECO API\", \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"height\": 300, \"width\": 450, \"encoding\": {\"x\": {\"field\": \"date\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false}}}, \"layer\": [{\"data\": {\"url\": \"https://api.economicsobservatory.com/gbr/unem\", \"format\": {\"type\": \"json\", \"property\": \"raw.years\"}}, \"mark\": {\"type\": \"line\", \"color\": \"red\"}}, {\"data\": {\"url\": \"https://api.economicsobservatory.com/usa/unem\", \"format\": {\"type\": \"json\", \"property\": \"raw.observations\"}}, \"mark\": {\"type\": \"line\", \"color\": \"blue\"}}]}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Garmet supply. Map by Josh Hellings\", \"config\": {\"background\": \"white\", \"concat\": {\"spacing\": 10}}, \"hconcat\": [{\"title\": {\"text\": \"Mapping the garment supply chain\", \"subtitle\": [\"25 Largest Shoe Factories\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"layer\": [{\"data\": {\"name\": \"map\", \"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/world_countries.geojson\", \"format\": {\"property\": \"features\"}}, \"transform\": [{\"filter\": \"datum['properties']['ISO3'] != 'AQ'\"}], \"projection\": {\"type\": \"naturalEarth1\", \"translate\": [-630, 220], \"scale\": 480}, \"mark\": {\"type\": \"geoshape\", \"fill\": \"lightgray\", \"stroke\": \"white\", \"strokeWidth\": 0.5}, \"encoding\": {\"tooltip\": {\"field\": \"properties.COUNTRY\"}}}, {\"data\": {\"name\": \"locations\", \"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/Global_WageIndicator_shoeFactories.csv\"}, \"projection\": {\"type\": \"naturalEarth1\", \"translate\": [275, 175], \"scale\": 300}, \"mark\": {\"type\": \"circle\"}, \"encoding\": {\"longitude\": {\"field\": \"Longitude\", \"type\": \"quantitative\"}, \"latitude\": {\"field\": \"Latitude\", \"type\": \"quantitative\"}, \"size\": {\"field\": \"number\", \"type\": \"quantitative\", \"legend\": null, \"scale\": {\"range\": [10, 100]}}, \"color\": {\"field\": \"brand\", \"type\": \"nominal\", \"legend\": {\"orient\": \"bottom\", \"title\": null, \"labelFontSize\": 12, \"offset\": -20}, \"scale\": {\"range\": [\"#c41e3a\", \"#005147\"]}}, \"tooltip\": [{\"field\": \"country\", \"title\": \"Country\"}, {\"field\": \"location2\", \"title\": \"Region\"}, {\"field\": \"number\", \"format\": \",\", \"title\": \"Workers\"}, {\"field\": \"brand\", \"title\": \"Brand\"}]}}]}, {\"vconcat\": [{\"width\": 200, \"height\": 160, \"title\": {\"text\": \"Vietnam\", \"fontSize\": 12, \"fontWeight\": 400}, \"projection\": {\"type\": \"mercator\", \"center\": [104, 14.5], \"scale\": 1800}, \"layer\": [{\"data\": {\"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/map_VNM_regions.geojson\", \"format\": {\"property\": \"features\"}}, \"mark\": {\"type\": \"geoshape\", \"fill\": \"slategrey\", \"fillOpacity\": 0.6, \"stroke\": \"white\", \"strokeWidth\": 0.5}, \"encoding\": {\"tooltip\": [{\"field\": \"properties.Name\", \"title\": \"Province\"}]}}, {\"data\": {\"name\": \"map\", \"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/world_countries.geojson\", \"format\": {\"property\": \"features\"}}, \"transform\": [{\"filter\": {\"field\": \"properties.ISO3\", \"oneOf\": [\"LAO\", \"KHM\", \"THA\"]}}], \"mark\": {\"type\": \"geoshape\", \"fill\": \"lightgray\", \"stroke\": \"white\", \"strokeWidth\": 0.5}, \"encoding\": {\"tooltip\": {\"field\": \"properties.COUNTRY\"}}}, {\"data\": {\"name\": \"locations\"}, \"transform\": [{\"filter\": \"datum.ISO3 == 'VNM'\"}], \"mark\": {\"type\": \"circle\", \"fillOpacity\": 1}, \"encoding\": {\"longitude\": {\"field\": \"Longitude\", \"type\": \"quantitative\"}, \"latitude\": {\"field\": \"Latitude\", \"type\": \"quantitative\"}, \"size\": {\"field\": \"number\", \"type\": \"quantitative\", \"legend\": null, \"scale\": {\"range\": [10, 100]}}, \"color\": {\"field\": \"brand\", \"type\": \"nominal\"}, \"tooltip\": [{\"field\": \"country\", \"title\": \"Country\"}, {\"field\": \"location2\", \"title\": \"Region\"}, {\"field\": \"number\", \"format\": \",\", \"title\": \"Workers\"}, {\"field\": \"brand\", \"title\": \"Brand\"}]}}]}, {\"width\": 200, \"height\": 120, \"title\": {\"text\": \"Indonesia\", \"fontSize\": 12, \"fontWeight\": 400, \"offset\": -5}, \"layer\": [{\"data\": {\"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/map_IDN_regions.geojson\", \"format\": {\"property\": \"features\"}}, \"projection\": {\"type\": \"identity\", \"reflectY\": true, \"translate\": [-5580, -300], \"scale\": 53}, \"mark\": {\"type\": \"geoshape\", \"fill\": \"slategray\", \"fillOpacity\": 0.6, \"stroke\": \"white\", \"strokeWidth\": 0.5}, \"encoding\": {\"tooltip\": [{\"field\": \"properties.Propinsi\", \"title\": \"Province\"}]}}, {\"data\": {\"name\": \"locations\"}, \"transform\": [{\"filter\": \"datum.ISO3 == 'IDN'\"}], \"projection\": {\"type\": \"identity\", \"reflectY\": true, \"scale\": 100}, \"mark\": {\"type\": \"circle\"}, \"encoding\": {\"longitude\": {\"field\": \"Longitude\", \"type\": \"quantitative\"}, \"latitude\": {\"field\": \"Latitude\", \"type\": \"quantitative\"}, \"size\": {\"field\": \"number\", \"type\": \"quantitative\", \"legend\": null, \"scale\": {\"range\": [10, 100]}}, \"color\": {\"field\": \"brand\", \"type\": \"nominal\"}, \"tooltip\": [{\"field\": \"country\", \"title\": \"Country\"}, {\"field\": \"location2\", \"title\": \"Region\"}, {\"field\": \"number\", \"format\": \",\", \"title\": \"Workers\"}, {\"field\": \"brand\", \"title\": \"Brand\"}]}}]}]}]}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"GDP data from BEA, Q3 2022. Population estimate from Census Bureau, Mid-2022. District of Columbia filtered out as distorts relative differences\", \"width\": 600, \"height\": 300, \"config\": {\"view\": {\"stroke\": null}, \"padding\": 0}, \"data\": {\"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/US_States_5m.json\", \"format\": {\"property\": \"features\"}}, \"title\": {\"text\": \"The United States\", \"fontSize\": 12, \"subtitle\": [\"Hover to highlight and see summary of economic data\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 9, \"anchor\": \"middle\", \"color\": \"black\"}, \"projection\": {\"type\": \"albersUsa\"}, \"mark\": {\"type\": \"geoshape\", \"stroke\": \"rgb(128,0,0)\", \"strokeWidth\": 0.1}, \"params\": [{\"name\": \"hoverState\", \"select\": {\"type\": \"point\", \"on\": \"mouseover\"}}], \"transform\": [{\"lookup\": \"properties.NAME\", \"from\": {\"key\": \"State\", \"fields\": [\"Current GDP\", \"Real GDP\", \"Population\", \"Current GDP per capita\", \"Real GDP per capita\"], \"data\": {\"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/explainer_usStates_gdp.csv\"}}}, {\"filter\": \"datum['properties.NAME'] != 'District of Columbia'\"}], \"encoding\": {\"color\": {\"condition\": {\"param\": \"hoverState\", \"value\": \"rgb(128,0,0)\"}, \"value\": \"rgb(250, 250, 250)\"}, \"tooltip\": [{\"field\": \"properties.NAME\", \"title\": \"State\"}, {\"field\": \"Population\", \"format\": \",\"}, {\"field\": \"Current GDP\", \"title\": \"GDP ($m)\", \"format\": \"$,d\"}, {\"field\": \"Current GDP per capita\", \"title\": \"GDP pc, current\", \"format\": \"$,d\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"2021 World Bank data, GDP per capita in current international $ and converted with purchasing power parity. .\", \"width\": 700, \"height\": 400, \"data\": {\"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/world_countries.geojson\", \"format\": {\"property\": \"features\"}}, \"config\": {\"view\": {\"stroke\": null}, \"padding\": 0}, \"title\": {\"text\": \"The World's 21 most populous countries\", \"fontSize\": 12, \"subtitle\": [\"Source: UN\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 9, \"anchor\": \"middle\", \"color\": \"black\"}, \"projection\": {\"type\": \"naturalEarth1\"}, \"mark\": {\"type\": \"geoshape\", \"stroke\": \"rgb(128, 0, 0)\", \"strokeWidth\": 0.1}, \"transform\": [{\"lookup\": \"properties.ISO3\", \"from\": {\"key\": \"ISO3\", \"fields\": [\"GDP per capita (PPP)\"], \"data\": {\"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/world_GDPpc.csv\"}}}, {\"filter\": \"datum['properties.COUNTRY'] != 'Antarctica'\"}], \"encoding\": {\"color\": {\"condition\": {\"test\": {\"field\": \"properties.COUNTRY\", \"oneOf\": [\"China\", \"India\", \"United States\", \"Indonesia\", \"Pakistan\", \"Brazil\", \"Nigeria\", \"Bangladesh\", \"Russian Federation\", \"Mexico\", \"Japan\", \"Ethiopia\", \"Philippines\", \"Egypt\", \"Vietnam\", \"Congo DRC\", \"Turkiye\", \"Iran\", \"Germany\", \"Thailand\", \"United Kingdom\"]}, \"value\": \"rgb(128,0,0)\"}, \"value\": \"rgb(250, 250, 250)\"}, \"tooltip\": [{\"field\": \"properties.COUNTRY\", \"title\": \"Country\"}, {\"field\": \"GDP per capita (PPP)\", \"title\": \"\", \"format\": \"$,d\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"GDP data from BEA, Q3 2022. Population estimate from Census Bureau, Mid-2022. District of Columbia filtered out as distorts relative differences\", \"width\": 600, \"height\": 300, \"config\": {\"view\": {\"stroke\": null}, \"padding\": 0}, \"data\": {\"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/US_States_5m.json\", \"format\": {\"property\": \"features\"}}, \"title\": {\"text\": \"GDP in the United States\", \"fontSize\": 12, \"subtitle\": [\"Current GDP per capita, source: BEA; Census Bureau, 2022\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 9, \"anchor\": \"middle\", \"color\": \"black\"}, \"projection\": {\"type\": \"albersUsa\"}, \"mark\": {\"type\": \"geoshape\", \"stroke\": \"white\", \"strokeWidth\": 0.5}, \"transform\": [{\"lookup\": \"properties.NAME\", \"from\": {\"key\": \"State\", \"fields\": [\"Current GDP\", \"Real GDP\", \"Population\", \"Current GDP per capita\", \"Real GDP per capita\"], \"data\": {\"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/explainer_usStates_gdp.csv\"}}}, {\"filter\": \"datum['properties.NAME'] != 'District of Columbia'\"}], \"encoding\": {\"color\": {\"field\": \"Current GDP per capita\", \"legend\": {\"title\": \"\", \"orient\": \"bottom-left\", \"legendX\": -5, \"legendY\": 0, \"direction\": \"vertical\", \"format\": \"$,d\"}, \"type\": \"quantitative\", \"scale\": {\"scheme\": \"inferno\", \"reverse\": false}}, \"tooltip\": [{\"field\": \"properties.NAME\", \"title\": \"State\"}, {\"field\": \"Population\", \"format\": \",\"}, {\"field\": \"Current GDP\", \"title\": \"GDP ($m)\", \"format\": \"$,d\"}, {\"field\": \"Current GDP per capita\", \"title\": \"GDP pc, current\", \"format\": \"$,d\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"2021 World Bank data, GDP per capita in current international $ and converted with purchasing power parity. .\", \"width\": 600, \"height\": 300, \"data\": {\"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/world_countries.geojson\", \"format\": {\"property\": \"features\"}}, \"config\": {\"view\": {\"stroke\": null}, \"padding\": 0}, \"title\": {\"text\": \"Global GDP\", \"fontSize\": 12, \"subtitle\": [\"Per capita, PPP, current $. Source: World Bank\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 9, \"anchor\": \"middle\", \"color\": \"black\"}, \"projection\": {\"type\": \"naturalEarth1\", \"translate\": [275, 175], \"scale\": 120}, \"mark\": {\"type\": \"geoshape\", \"stroke\": \"white\", \"strokeWidth\": 0.5}, \"transform\": [{\"lookup\": \"properties.ISO3\", \"from\": {\"key\": \"ISO3\", \"fields\": [\"GDP per capita (PPP)\"], \"data\": {\"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/world_GDPpc.csv\"}}}, {\"filter\": \"datum['properties.COUNTRY'] != 'Antarctica'\"}], \"encoding\": {\"color\": {\"condition\": {\"test\": \"!datum['GDP per capita (PPP)']\", \"value\": \"lightgrey\"}, \"field\": \"GDP per capita (PPP)\", \"legend\": {\"title\": \"\", \"orient\": \"bottom-left\", \"direction\": \"vertical\", \"format\": \"$,d\", \"fillColor\": null, \"offset\": 0}, \"type\": \"quantitative\", \"scale\": {\"type\": \"log\", \"scheme\": \"inferno\", \"reverse\": false}}, \"tooltip\": [{\"field\": \"properties.COUNTRY\", \"title\": \"Country\"}, {\"field\": \"GDP per capita (PPP)\", \"title\": \"\", \"format\": \"$,d\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"A simple bar chart with embedded data.\", \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/data/main/e4e9/Nokia_Revenue.json\"}, \"config\": {\"style\": {\"cell\": {\"stroke\": \"transparent\"}}}, \"width\": 500, \"height\": 350, \"title\": {\"text\": \"Nokia's Decline\", \"subtitle\": [\"Revenue, Billions of USD, 2022 Prices\", \"Data: Nokia\", \"\"], \"fontSize\": 16, \"subtitleFontSize\": 12, \"subtitleFontStyle\": \"italic\", \"anchor\": \"start\", \"color\": \"black\"}, \"layer\": [{\"mark\": {\"type\": \"bar\"}, \"encoding\": {\"x\": {\"field\": \"Year\", \"scale\": {\"paddingInner\": 0.09, \"paddingOuter\": 0}, \"type\": \"nominal\", \"axis\": {\"labelAngle\": 90, \"labelFlush\": false}, \"sort\": {\"field\": \"Year\"}, \"title\": null}, \"y\": {\"field\": \"divRevenue\", \"scale\": {\"domainMax\": 110}, \"type\": \"quantitative\", \"axis\": {\"format\": \"2s\", \"titleFontWeight\": \"normal\", \"grid\": false}, \"title\": \"Billions USD\"}, \"color\": {\"value\": \"rgb(128,0,0)\"}}, \"transform\": [{\"filter\": \"datum.Series == 'Real_Revenue'\"}]}, {\"mark\": {\"type\": \"bar\"}, \"encoding\": {\"x\": {\"field\": \"Year\", \"scale\": {\"paddingInner\": 0.09, \"paddingOuter\": 0}, \"type\": \"nominal\", \"axis\": {\"labelAngle\": 0, \"labelFlush\": false}, \"sort\": {\"field\": \"Year\"}, \"title\": null}, \"y\": {\"field\": \"divRevenue\", \"scale\": {\"domainMax\": 110}, \"type\": \"quantitative\", \"axis\": {\"format\": \"2s\", \"titleFontWeight\": \"normal\", \"grid\": false}, \"title\": \"Billions USD\"}, \"color\": {\"value\": \"rgb(128,0,0)\"}}, \"transform\": [{\"filter\": \"datum.Series == 'Real_Revenue'\"}]}, {\"mark\": {\"type\": \"text\", \"dy\": -10, \"fontSize\": 10, \"fontWeight\": 200}, \"encoding\": {\"x\": {\"field\": \"Year\", \"scale\": {\"paddingInner\": 0.09, \"paddingOuter\": 0}, \"type\": \"nominal\", \"axis\": {\"labelAngle\": 0, \"labelFlush\": false}, \"sort\": {\"field\": \"Year\"}, \"title\": null}, \"y\": {\"field\": \"divRevenue\", \"type\": \"quantitative\", \"axis\": {\"format\": \"2s\", \"titleFontWeight\": \"normal\"}, \"title\": \"Billions USD\"}, \"color\": {\"value\": \"rgb(100,0,0)\"}, \"text\": {\"field\": \"divRevenue\", \"format\": \"0d\"}}, \"transform\": [{\"filter\": \"datum.Series == 'Real_Revenue'\"}, {\"calculate\": \"datum.Year == '2001' | datum.Year == '2022' ? datum.Year : ' \\u2019' + substring(datum.Year, 2,4) \", \"as\": \"shortYear\"}, {\"calculate\": \"datum.Revenue / 1000000000 \", \"as\": \"divRevenue\"}]}], \"transform\": [{\"calculate\": \"datum.Year == '2001' | datum.Year == '2022' ? datum.Year : ' \\u2019' + substring(datum.Year, 2,4) \", \"as\": \"shortYear\"}, {\"calculate\": \"datum.Revenue / 1000000000 \", \"as\": \"divRevenue\"}]}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Richard's line chart\", \"title\": {\"text\": \"Eldery workers - Japan\", \"subtitle\": [\"Share of workforce that is 65+\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"view\": {\"stroke\": \"transparent\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/ch8_Trends/elderlyWorkersJapan.csv\"}, \"height\": 300, \"width\": 350, \"mark\": {\"type\": \"line\", \"color\": \"rgb(128,0,0)\", \"point\": {\"color\": \"rgb(128,0,0)\", \"size\": 50}}, \"encoding\": {\"x\": {\"field\": \"Year\", \"type\": \"temporal\", \"axis\": {\"title\": null}}, \"y\": {\"field\": \"ValuePCT\", \"type\": \"quantitative\", \"axis\": {\"title\": null, \"format\": \"%\"}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Demographics - Japan\", \"subtitle\": [\"Four key demographic measures. Source: UN\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/ch8_Trends/demographicsJapan.csv\"}, \"transform\": [{\"fold\": [\"A Population\", \"B Median Age\", \"D Fertility Rate\", \"C Life Expectancy\"], \"as\": [\"var\", \"val\"]}], \"height\": 130, \"width\": 200, \"mark\": {\"type\": \"line\", \"strokeWidth\": 2, \"color\": \"rgb(128,0,0)\"}, \"encoding\": {\"x\": {\"field\": \"Year\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false}}, \"y\": {\"field\": \"val\", \"type\": \"quantitative\", \"title\": null}, \"facet\": {\"field\": \"var\", \"columns\": 2, \"title\": null, \"align\": \"each\"}}, \"resolve\": {\"scale\": {\"y\": \"independent\"}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/data/demographicsUN.csv\", \"format\": {\"type\": \"csv\"}}, \"title\": {\"text\": \"Getting older fast\", \"subtitle\": [\"Share of popluation that is aged 65+. Source: UN\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\"}, \"height\": 400, \"width\": 300, \"view\": {\"stroke\": \"transparent\"}, \"mark\": {\"type\": \"line\", \"strokeWidth\": 2}, \"transform\": [{\"filter\": {\"selection\": \"Region\"}}, {\"filter\": \"datum.Region!='Democratic Republic of the Congo'\"}], \"selection\": {\"Region\": {\"type\": \"single\", \"fields\": [\"Region\"], \"bind\": {\"input\": \"select\", \"options\": [null, \"Australia\", \"Bangladesh\", \"Brazil\", \"Canada\", \"Chile\", \"China\", \"France\", \"India\", \"Indonesia\", \"Italy\", \"France\", \"Japan\", \"Republic of Korea\", \"Spain\", \"United Kingdom\", \"United States of America\"], \"name\": \"Select a country\"}}}, \"encoding\": {\"x\": {\"field\": \"Year\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10}}, \"y\": {\"field\": \"sh_65+\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"title\": null, \"grid\": false, \"labelSeparation\": 10, \"format\": \"%\"}}, \"color\": {\"field\": \"Region\", \"type\": \"nominal\", \"legend\": {\"orient\": \"top-left\", \"columns\": 2, \"title\": null, \"labelExpr\": \"{'WORLD':'World','Japan':'Japan','United States of America':'USA'}[datum.label]\"}, \"scale\": {\"range\": [\"rgba(128,0,0,0.2)\", \"rgba(128,0,0,0.2)\", \"rgba(128,0,0,0.2)\", \"rgba(128,0,0,0.2)\", \"rgba(128,0,0,0.2)\", \"rgba(128,0,0,0.2)\", \"rgba(128,0,0,0.2)\", \"rgba(128,0,0,0.2)\", \"rgba(128,0,0,0.2)\", \"rgba(128,0,0,0.2)\", \"rgba(0,150,150,1)\", \"rgba(128,0,0,0.2)\", \"rgba(128,0,0,0.2)\", \"rgba(128,0,0,0.2)\", \"rgba(0,67,167,1)\", \"rgba(128,0,0,1)\"]}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/maddyht20/maddyht20.github.io/main/US%20Migration%205%20CSV.csv\"}, \"title\": {\"fontSize\": 13, \"subtitleFontSize\": 13, \"text\": \"Total Immigrants by State as percentage of population\", \"subtitle\": [\"Source: Homeland Security\", \"\"], \"anchor\": \"start\"}, \"width\": 600, \"height\": 600, \"mark\": {\"type\": \"bar\"}, \"encoding\": {\"y\": {\"field\": \"State\", \"sort\": {\"op\": \"sum\", \"order\": \"ascending\", \"field\": \"ValueC\"}, \"axis\": {\"title\": null}}, \"x\": {\"aggregate\": \"sum\", \"field\": \"ValueC\", \"axis\": {\"title\": \"Migration as % of State Population\"}}, \"color\": {\"field\": \"Type1\", \"legend\": {\"orient\": \"none\", \"columns\": 13, \"legendX\": -100, \"legendY\": -30, \"offset\": 10, \"title\": null}}, \"tooltip\": [{\"field\": \"ValueC\", \"title\": \"Migration as % of State Population\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Tufte inspired chart, with white grid lines over the bars\", \"title\": {\"text\": \"US: top trade partners - goods\", \"subtitle\": [\"Total trade (imports plus exports). Annual to 2023. Million USD.\", \"Source: Census Bureau\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"view\": {\"stroke\": \"transparent\"}, \"width\": 400, \"height\": 300, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/ch7_Trade/UStradePartnersGoods.csv\"}, \"transform\": [{\"filter\": \"datum.tradePartner<21\"}], \"mark\": {\"type\": \"bar\", \"color\": \"rgb(128,0,0)\"}, \"encoding\": {\"x\": {\"field\": \"tradeTotal\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"zindex\": 1, \"gridColor\": \"white\", \"gridWidth\": 0.5, \"labelAngle\": 0, \"format\": \"f\"}}, \"y\": {\"field\": \"Country\", \"title\": null, \"type\": \"nominal\", \"sort\": \"-x\"}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/maddyht20/maddyht20.github.io/main/NTM%20CSV.csv\"}, \"title\": {\"fontSize\": 13, \"text\": \"Barriers to trade\", \"subtitle\": [\"Data as of year-end 2021. Source: WTO\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\"}, \"width\": 500, \"height\": 300, \"mark\": {\"type\": \"bar\"}, \"encoding\": {\"y\": {\"field\": \"Type2\", \"sort\": {\"op\": \"sum\", \"order\": \"descending\", \"field\": \"Value\"}, \"axis\": {\"title\": null}}, \"x\": {\"aggregate\": \"sum\", \"field\": \"Value\", \"axis\": {\"title\": \"Number of Measures\"}}, \"color\": {\"field\": \"Type3\", \"legend\": {\"orient\": \"none\", \"columns\": 13, \"legendX\": -100, \"legendY\": -30, \"offset\": 10, \"title\": null}}, \"tooltip\": [{\"field\": \"Type1\", \"title\": \"Type\"}, {\"field\": \"Value\", \"title\": \"Number of Measures\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"A simple donut chart with embedded data.\", \"height\": 300, \"width\": 300, \"view\": {\"stroke\": \"transparent\"}, \"title\": {\"text\": \"Non-immigrants in the US - by country\", \"subtitle\": [\"Legal entry by country of citizenship. FY 2022. Source: DHS\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/ch7_Trade/USnonImmigrantByCountry_Top10.csv\"}, \"transform\": [{\"filter\": \"datum.Type != 'Non-immigrant'\"}], \"mark\": {\"type\": \"arc\", \"innerRadius\": 60, \"outerRadius\": 120, \"cornerRadius\": 0, \"padAngle\": 0.0, \"thetaOffset\": 0}, \"encoding\": {\"theta\": {\"field\": \"Number\", \"type\": \"quantitative\"}, \"color\": {\"field\": \"Country\", \"type\": \"nominal\", \"legend\": {\"title\": null}, \"sort\": {\"field\": \"Number\", \"order\": \"descending\"}, \"scale\": {\"scheme\": \"set3\"}}, \"order\": {\"field\": \"Number\", \"type\": \"quantitative\", \"sort\": \"descending\"}, \"tooltip\": [{\"field\": \"Value\", \"title\": \"USD billions\", \"format\": \"$,\"}, {\"field\": \"Share\", \"title\": \"Share\", \"format\": \".0%\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"A simple donut chart with embedded data.\", \"height\": 300, \"width\": 300, \"view\": {\"stroke\": \"transparent\"}, \"title\": {\"text\": \"Foreign entry to the US\", \"subtitle\": [\"FY 2022. Source: DHS\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/ch7_Trade/USmigrationByType.csv\"}, \"mark\": {\"type\": \"arc\", \"innerRadius\": 60, \"outerRadius\": 120, \"cornerRadius\": 0, \"padAngle\": 0.0, \"thetaOffset\": 0}, \"encoding\": {\"theta\": {\"field\": \"Number\", \"type\": \"quantitative\"}, \"color\": {\"field\": \"Type\", \"type\": \"nominal\", \"legend\": {\"title\": null}, \"scale\": {\"scheme\": \"set3\"}}, \"tooltip\": [{\"field\": \"Value\", \"title\": \"USD billions\", \"format\": \"$,\"}, {\"field\": \"Share\", \"title\": \"Share\", \"format\": \".0%\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"A simple donut chart with embedded data.\", \"height\": 300, \"width\": 300, \"view\": {\"stroke\": \"transparent\"}, \"title\": {\"text\": \"Foreign entry to the US\", \"subtitle\": [\"FY 2022. Source: DHS\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/ch7_Trade/USmigrationByType.csv\"}, \"transform\": [{\"filter\": \"datum.Type != 'Non-immigrant'\"}], \"mark\": {\"type\": \"arc\", \"innerRadius\": 60, \"outerRadius\": 120, \"cornerRadius\": 0, \"padAngle\": 0.0, \"thetaOffset\": 0}, \"encoding\": {\"theta\": {\"field\": \"Number\", \"type\": \"quantitative\"}, \"color\": {\"field\": \"Type\", \"type\": \"nominal\", \"legend\": {\"title\": null}, \"scale\": {\"scheme\": \"set3\"}}, \"tooltip\": [{\"field\": \"Value\", \"title\": \"USD billions\", \"format\": \"$,\"}, {\"field\": \"Share\", \"title\": \"Share\", \"format\": \".0%\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/ch7_Trade/IIP_P20.csv\", \"format\": {\"type\": \"csv\"}}, \"title\": {\"text\": \"International Investment Position (IIP)\", \"subtitle\": [\"USD Billions. Source: IMF BOPS\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"transform\": [{\"fold\": [\"France\", \"Germany\"], \"as\": [\"var\", \"val\"]}, {\"calculate\": \"datum.val/1000\", \"as\": \"val_bn\"}], \"width\": 400, \"height\": 300, \"mark\": {\"type\": \"line\", \"color\": \"seagreen\", \"strokeWidth\": 2, \"opacity\": 1}, \"encoding\": {\"x\": {\"field\": \"Year\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false}}, \"y\": {\"field\": \"val_bn\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false}}, \"color\": {\"field\": \"var\", \"scale\": {\"range\": [\"red\", \"blue\", \"green\", \"yellow\", \"pink\"]}, \"legend\": {\"orient\": \"top-left\", \"title\": null}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/ch7_Trade/IIP_P20.csv\", \"format\": {\"type\": \"csv\"}}, \"title\": {\"text\": \"International Investment Position (IIP)\", \"subtitle\": [\"USD Billions. Source: IMF BOPS\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"transform\": [{\"fold\": [\"France\", \"Germany\"], \"as\": [\"var\", \"val\"]}, {\"calculate\": \"datum.val/1000\", \"as\": \"val_bn\"}, {\"filter\": \"datum.Year < 1031152000000\"}], \"width\": 400, \"height\": 300, \"mark\": {\"type\": \"line\", \"color\": \"seagreen\", \"strokeWidth\": 2, \"opacity\": 1}, \"encoding\": {\"x\": {\"field\": \"Year\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false}}, \"y\": {\"field\": \"val_bn\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false}}, \"color\": {\"field\": \"var\", \"scale\": {\"range\": [\"red\", \"blue\", \"green\", \"yellow\", \"pink\"]}, \"legend\": {\"orient\": \"top-left\", \"title\": null}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/JamesFKean/RA_work/main/p21v2.csv\"}, \"height\": 300, \"width\": 450, \"title\": {\"text\": \"Openness to trade: 21 Populous Countries\", \"anchor\": \"start\", \"subtitle\": [\"Trade as a % of GDP\", \"Source: World Bank\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10}, \"params\": [{\"name\": \"year\", \"value\": 2021, \"bind\": {\"input\": \"range\", \"min\": 1970, \"max\": 2021, \"step\": 1, \"name\": \"Year\"}}, {\"name\": \"highlight\", \"select\": {\"type\": \"point\", \"on\": \"mouseover\"}}], \"transform\": [{\"calculate\": \"toNumber(year)\", \"as\": \"yearS\"}, {\"filter\": \"datum.yearS == datum.Year\"}], \"mark\": \"bar\", \"encoding\": {\"x\": {\"field\": \"Country\", \"type\": \"nominal\", \"sort\": {\"field\": \"rank\", \"order\": \"ascending\"}, \"title\": \"\"}, \"y\": {\"field\": \"GDP\", \"type\": \"quantitative\", \"axis\": {\"format\": \"%\", \"gridOpacity\": 0.5}, \"title\": null}, \"color\": {\"field\": \"rank2\", \"type\": \"quantitative\", \"legend\": null, \"scale\": {\"range\": [\"#000\", \"#880000\"]}}, \"opacity\": {\"condition\": {\"test\": {\"param\": \"highlight\"}, \"value\": 1}, \"value\": 0.4}, \"tooltip\": [{\"field\": \"Country\"}, {\"field\": \"GDP\", \"type\": \"quantitative\", \"format\": \".2%\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/JamesFKean/RA_work/main/tradedta.csv\"}, \"height\": 300, \"width\": 450, \"title\": {\"text\": \"Global openness: Trade as a % of GDP\", \"anchor\": \"start\", \"subtitle\": [\"Source: World Bank\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"color\": \"black\"}, \"encoding\": {\"x\": {\"field\": \"variable\", \"type\": \"temporal\", \"axis\": {\"gridOpacity\": 0.2}, \"title\": \"\"}}, \"layer\": [{\"encoding\": {\"color\": {\"field\": \"Type\", \"type\": \"nominal\", \"legend\": null, \"scale\": {\"range\": [\"#880000\", \"#ff0303\", \"#000\"]}}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"axis\": {\"gridOpacity\": 0.2, \"format\": \"%\"}, \"title\": null}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"interpolate\": \"\"}}, {\"transform\": [{\"filter\": {\"param\": \"hover\", \"empty\": false}}], \"mark\": \"point\"}]}, {\"mark\": \"rule\", \"encoding\": {\"opacity\": {\"condition\": {\"value\": 0.5, \"param\": \"hover\", \"empty\": false}, \"value\": 0}, \"tooltip\": [{\"field\": \"value\", \"title\": \"Trade as % of global GDP\", \"format\": \".2%\"}, {\"field\": \"variable\", \"type\": \"temporal\", \"format\": \"%Y\", \"title\": \"Year\"}]}, \"params\": [{\"name\": \"hover\", \"select\": {\"type\": \"point\", \"fields\": [\"value\"], \"nearest\": true, \"on\": \"mouseover\", \"clear\": \"mouseout\"}}]}]}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"config\": {\"background\": \"white\", \"concat\": {\"spacing\": 10}}, \"hconcat\": [{\"title\": {\"text\": \"Mapping the garment supply chain\", \"subtitle\": [\"25 Largest Shoe Factories\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"layer\": [{\"data\": {\"name\": \"map\", \"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/world_countries.geojson\", \"format\": {\"property\": \"features\"}}, \"transform\": [{\"filter\": \"datum['properties']['ISO3'] != 'AQ'\"}], \"projection\": {\"type\": \"naturalEarth1\", \"translate\": [-630, 220], \"scale\": 480}, \"mark\": {\"type\": \"geoshape\", \"fill\": \"lightgray\", \"stroke\": \"white\", \"strokeWidth\": 0.5}, \"encoding\": {\"tooltip\": {\"field\": \"properties.COUNTRY\"}}}, {\"data\": {\"name\": \"locations\", \"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/Global_WageIndicator_shoeFactories.csv\"}, \"projection\": {\"type\": \"naturalEarth1\", \"translate\": [275, 175], \"scale\": 300}, \"mark\": {\"type\": \"circle\"}, \"encoding\": {\"longitude\": {\"field\": \"Longitude\", \"type\": \"quantitative\"}, \"latitude\": {\"field\": \"Latitude\", \"type\": \"quantitative\"}, \"size\": {\"field\": \"number\", \"type\": \"quantitative\", \"legend\": null, \"scale\": {\"range\": [10, 100]}}, \"color\": {\"field\": \"brand\", \"type\": \"nominal\", \"legend\": {\"orient\": \"bottom\", \"title\": null, \"labelFontSize\": 12, \"offset\": -20}, \"scale\": {\"range\": [\"#c41e3a\", \"#005147\"]}}, \"tooltip\": [{\"field\": \"country\", \"title\": \"Country\"}, {\"field\": \"location2\", \"title\": \"Region\"}, {\"field\": \"number\", \"format\": \",\", \"title\": \"Workers\"}, {\"field\": \"brand\", \"title\": \"Brand\"}]}}]}, {\"vconcat\": [{\"width\": 200, \"height\": 160, \"title\": {\"text\": \"Vietnam\", \"fontSize\": 12, \"fontWeight\": 400}, \"projection\": {\"type\": \"mercator\", \"center\": [104, 14.5], \"scale\": 1800}, \"layer\": [{\"data\": {\"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/map_VNM_regions.geojson\", \"format\": {\"property\": \"features\"}}, \"mark\": {\"type\": \"geoshape\", \"fill\": \"slategrey\", \"fillOpacity\": 0.6, \"stroke\": \"white\", \"strokeWidth\": 0.5}, \"encoding\": {\"tooltip\": [{\"field\": \"properties.Name\", \"title\": \"Province\"}]}}, {\"data\": {\"name\": \"map\", \"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/world_countries.geojson\", \"format\": {\"property\": \"features\"}}, \"transform\": [{\"filter\": {\"field\": \"properties.ISO3\", \"oneOf\": [\"LAO\", \"KHM\", \"THA\"]}}], \"mark\": {\"type\": \"geoshape\", \"fill\": \"lightgray\", \"stroke\": \"white\", \"strokeWidth\": 0.5}, \"encoding\": {\"tooltip\": {\"field\": \"properties.COUNTRY\"}}}, {\"data\": {\"name\": \"locations\"}, \"transform\": [{\"filter\": \"datum.ISO3 == 'VNM'\"}], \"mark\": {\"type\": \"circle\", \"fillOpacity\": 1}, \"encoding\": {\"longitude\": {\"field\": \"Longitude\", \"type\": \"quantitative\"}, \"latitude\": {\"field\": \"Latitude\", \"type\": \"quantitative\"}, \"size\": {\"field\": \"number\", \"type\": \"quantitative\", \"legend\": null, \"scale\": {\"range\": [10, 100]}}, \"color\": {\"field\": \"brand\", \"type\": \"nominal\"}, \"tooltip\": [{\"field\": \"country\", \"title\": \"Country\"}, {\"field\": \"location2\", \"title\": \"Region\"}, {\"field\": \"number\", \"format\": \",\", \"title\": \"Workers\"}, {\"field\": \"brand\", \"title\": \"Brand\"}]}}]}, {\"width\": 200, \"height\": 120, \"title\": {\"text\": \"Indonesia\", \"fontSize\": 12, \"fontWeight\": 400, \"offset\": -5}, \"layer\": [{\"data\": {\"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/map_IDN_regions.geojson\", \"format\": {\"property\": \"features\"}}, \"projection\": {\"type\": \"identity\", \"reflectY\": true, \"translate\": [-5580, -300], \"scale\": 53}, \"mark\": {\"type\": \"geoshape\", \"fill\": \"slategray\", \"fillOpacity\": 0.6, \"stroke\": \"white\", \"strokeWidth\": 0.5}, \"encoding\": {\"tooltip\": [{\"field\": \"properties.Propinsi\", \"title\": \"Province\"}]}}, {\"data\": {\"name\": \"locations\"}, \"transform\": [{\"filter\": \"datum.ISO3 == 'IDN'\"}], \"projection\": {\"type\": \"identity\", \"reflectY\": true, \"scale\": 100}, \"mark\": {\"type\": \"circle\"}, \"encoding\": {\"longitude\": {\"field\": \"Longitude\", \"type\": \"quantitative\"}, \"latitude\": {\"field\": \"Latitude\", \"type\": \"quantitative\"}, \"size\": {\"field\": \"number\", \"type\": \"quantitative\", \"legend\": null, \"scale\": {\"range\": [10, 100]}}, \"color\": {\"field\": \"brand\", \"type\": \"nominal\"}, \"tooltip\": [{\"field\": \"country\", \"title\": \"Country\"}, {\"field\": \"location2\", \"title\": \"Region\"}, {\"field\": \"number\", \"format\": \",\", \"title\": \"Workers\"}, {\"field\": \"brand\", \"title\": \"Brand\"}]}}]}]}]}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/ch6_Government/usYieldCurve.csv\", \"format\": {\"type\": \"csv\"}}, \"title\": {\"text\": \"US Yield Curve\", \"subtitle\": [\"Yield for contracts of different maturity (months). Source: US Treasury\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"transform\": [{\"fold\": [\"Current\", \"April_2004\"], \"as\": [\"var\", \"val\"]}, {\"calculate\": \"datum.val/100\", \"as\": \"val_pct\"}, {\"filter\": \"datum.val_pct>0\"}, {\"filter\": \"datum.Months<300\"}], \"width\": 400, \"height\": 300, \"mark\": {\"type\": \"line\", \"point\": true, \"color\": \"seagreen\", \"strokeWidth\": 2, \"opacity\": 1}, \"encoding\": {\"x\": {\"field\": \"Months\", \"type\": \"quantitative\", \"title\": \"Months\", \"axis\": {\"grid\": false}}, \"y\": {\"field\": \"val_pct\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"grid\": false, \"format\": \"%\"}}, \"color\": {\"field\": \"var\", \"scale\": {\"range\": [\"rgb(128,0,0)\", \"green\"]}, \"legend\": {\"orient\": \"bottom-right\", \"title\": null}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"vconcat\": [{\"title\": {\"text\": \"Sales Taxes\", \"subtitle\": [\"Standard VAT rate. Source: IMF\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 12, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 500, \"height\": 300, \"data\": {\"url\": \"https://unpkg.com/world-atlas@1.1.4/world/110m.json\", \"format\": {\"type\": \"topojson\", \"feature\": \"countries\"}}, \"projection\": {\"type\": \"naturalEarth1\"}, \"mark\": {\"type\": \"geoshape\", \"stroke\": \"gbp(25, 25, 25)\", \"strokeWidth\": 0.2}, \"encoding\": {\"tooltip\": [{\"field\": \"name\", \"title\": \"Country\"}, {\"field\": \"tooltip_Standard_VAT\", \"title\": \"Standard VAT Rate (%)\"}], \"color\": {\"condition\": {\"value\": \"lightgray\", \"test\": \"datum.Standard_VAT == '-0.001' \"}, \"field\": \"Standard_VAT\", \"type\": \"quantitative\", \"scale\": {\"scheme\": \"inferno\", \"reverse\": true, \"domain\": [0, 0.3]}, \"title\": \"%\", \"legend\": {\"orient\": \"none\", \"legendX\": 0, \"legendY\": -10, \"direction\": \"horizontal\", \"title\": null, \"format\": \"%\"}}}, \"transform\": [{\"calculate\": \"parseInt(datum.id)\", \"as\": \"id_N\"}, {\"lookup\": \"id_N\", \"from\": {\"key\": \"id\", \"fields\": [\"name\"], \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/dataWorldCountryNamesIDs.json\"}}}, {\"lookup\": \"name\", \"from\": {\"data\": {\"url\": \"https://raw.githubusercontent.com/maddyht20/maddyht20.github.io/main/VAT%20CSV.csv\"}, \"key\": \"Country\", \"fields\": [\"Standard_VAT\"]}, \"default\": \"-0.001\"}, {\"calculate\": \"datum.id_N == 68 ? 15 : datum.Standard_VAT\", \"as\": \"Standard_VAT\"}, {\"calculate\": \"datum.id_N == 328 ? 14 : datum.Standard_VAT\", \"as\": \"Standard_VAT\"}, {\"calculate\": \"datum.Standard_VAT == '' ? '-0.001' : datum.Standard_VAT \", \"as\": \"Standard_VAT\"}, {\"calculate\": \"datum.Standard_VAT > 0 ? datum.Standard_VAT/100 : datum.Standard_VAT\", \"as\": \"Standard_VAT\"}, {\"fold\": [\"Standard_VAT\"], \"as\": [\"Year\", \"Value\"]}, {\"calculate\": \"toNumber(datum.Value)\", \"as\": \"Value_N\"}, {\"calculate\": \"datum.Standard_VAT >= 0 ? datum.Standard_VAT*100+'%' : 'no data' \", \"as\": \"tooltip_Standard_VAT\"}]}, {\"title\": {\"text\": \"Average Sales Tax Rate\", \"subtitle\": [\"Source: Trading Economics\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 12, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 500, \"height\": 300, \"data\": {\"url\": \"https://unpkg.com/world-atlas@1.1.4/world/110m.json\", \"format\": {\"type\": \"topojson\", \"feature\": \"countries\"}}, \"projection\": {\"type\": \"naturalEarth1\"}, \"mark\": {\"type\": \"geoshape\", \"stroke\": \"gbp(25, 25, 25)\", \"strokeWidth\": 0.2}, \"encoding\": {\"tooltip\": [{\"field\": \"name\", \"title\": \"Country\"}, {\"field\": \"tooltip_Saltes_Tax\", \"title\": \"Average Sales Tax (%)\"}], \"color\": {\"condition\": {\"value\": \"lightgray\", \"test\": \"datum.Sales_Tax == '-0.001' \"}, \"field\": \"Sales_Tax\", \"type\": \"quantitative\", \"scale\": {\"scheme\": \"oranges\"}, \"legend\": null}}, \"transform\": [{\"calculate\": \"parseInt(datum.id)\", \"as\": \"id_N\"}, {\"lookup\": \"id_N\", \"from\": {\"key\": \"id\", \"fields\": [\"name\"], \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/dataWorldCountryNamesIDs.json\"}}}, {\"lookup\": \"name\", \"from\": {\"data\": {\"url\": \"https://raw.githubusercontent.com/maddyht20/maddyht20.github.io/main/Sales%20Tax%20CSV.csv\"}, \"key\": \"Country\", \"fields\": [\"Sales_Tax\"]}, \"default\": \"-0.001\"}, {\"calculate\": \"datum.Sales_Tax > 0 ? datum.Sales_Tax/100 : datum.Sales_Tax\", \"as\": \"Sales_Tax\"}, {\"calculate\": \"datum.Sales_Tax >= 0 ? datum.Sales_Tax*100+'%' : 'no data' \", \"as\": \"tooltip_Saltes_Tax\"}]}]}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/JamesFKean/RA_work/main/chart1_2v2.csv\"}, \"height\": 350, \"width\": 350, \"title\": {\"text\": \"Spending Growth\", \"anchor\": \"start\", \"subtitle\": [\"Source: CBO\", \"\"]}, \"encoding\": {\"x\": {\"field\": \"Year\", \"type\": \"temporal\", \"axis\": {\"gridOpacity\": 0.2}, \"title\": \"\"}}, \"layer\": [{\"encoding\": {\"color\": {\"field\": \"Type\", \"type\": \"nominal\", \"legend\": {\"title\": \"\"}, \"scale\": {\"range\": [\"#880000\", \"#ff0303\", \"#000\"]}}, \"y\": {\"field\": \"Value\", \"type\": \"quantitative\", \"axis\": {\"gridOpacity\": 0.2}, \"title\": \"% of GDP\"}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"interpolate\": \"monotone\"}}, {\"transform\": [{\"filter\": {\"param\": \"hover\", \"empty\": false}}], \"mark\": \"point\"}]}, {\"transform\": [{\"pivot\": \"Type\", \"value\": \"Value\", \"groupby\": [\"Year\"]}], \"mark\": \"rule\", \"encoding\": {\"opacity\": {\"condition\": {\"value\": 0.5, \"param\": \"hover\", \"empty\": false}, \"value\": 0}, \"tooltip\": [{\"field\": \"Social Security\", \"type\": \"quantitative\", \"title\": \"% of GDP spent on social security\"}, {\"field\": \"Income Security\", \"type\": \"quantitative\", \"title\": \"% of GDP spent on income security\"}, {\"field\": \"Major Health Care Programs\", \"type\": \"quantitative\", \"title\": \"% of GDP spent on major health care programs\"}]}, \"params\": [{\"name\": \"hover\", \"select\": {\"type\": \"point\", \"fields\": [\"Year\"], \"nearest\": true, \"on\": \"mouseover\", \"clear\": \"mouseout\"}}]}]}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/JamesFKean/RA_work/main/chart3v2.csv\"}, \"height\": 350, \"width\": 350, \"title\": {\"text\": \"US Government Revenues vs Outlays\", \"anchor\": \"start\", \"subtitle\": \"Source: CBO\"}, \"transform\": [{\"filter\": \"datum.Type!=['Revenues']\"}], \"encoding\": {\"x\": {\"field\": \"Year\", \"type\": \"temporal\", \"axis\": {\"gridOpacity\": 0.2}, \"title\": \"\"}}, \"layer\": [{\"encoding\": {\"color\": {\"field\": \"Type\", \"type\": \"nominal\", \"legend\": {\"title\": \"\"}, \"scale\": {\"range\": [\"#ff0303\"]}}, \"y\": {\"field\": \"Value\", \"type\": \"quantitative\", \"axis\": {\"gridOpacity\": 0.2}, \"title\": \"Billions of USD\"}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"interpolate\": \"monotone\"}}, {\"transform\": [{\"filter\": {\"param\": \"hover\", \"empty\": false}}], \"mark\": \"point\"}]}, {\"transform\": [{\"pivot\": \"Type\", \"value\": \"Value\", \"groupby\": [\"Year\"]}], \"mark\": \"rule\", \"encoding\": {\"opacity\": {\"condition\": {\"value\": 0.5, \"param\": \"hover\", \"empty\": false}, \"value\": 0}, \"tooltip\": [{\"field\": \"Outlays\", \"type\": \"quantitative\", \"title\": \"Outlays Billions of USD\"}]}, \"params\": [{\"name\": \"hover\", \"select\": {\"type\": \"point\", \"fields\": [\"Year\"], \"nearest\": true, \"on\": \"mouseover\", \"clear\": \"mouseout\"}}]}]}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/JamesFKean/RA_work/main/chart3v2.csv\"}, \"height\": 350, \"width\": 350, \"title\": {\"text\": \"US Government Revenues vs Outlays\", \"anchor\": \"start\", \"subtitle\": \"Source: CBO\"}, \"encoding\": {\"x\": {\"field\": \"Year\", \"type\": \"temporal\", \"axis\": {\"gridOpacity\": 0.2}, \"title\": \"\"}}, \"layer\": [{\"encoding\": {\"color\": {\"field\": \"Type\", \"type\": \"nominal\", \"legend\": {\"title\": \"\"}, \"scale\": {\"range\": [\"#ff0303\", \"#880000\"]}}, \"y\": {\"field\": \"Value\", \"type\": \"quantitative\", \"axis\": {\"gridOpacity\": 0.2}, \"title\": \"Billions of USD\"}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"interpolate\": \"monotone\"}}, {\"transform\": [{\"filter\": {\"param\": \"hover\", \"empty\": false}}], \"mark\": \"point\"}]}, {\"transform\": [{\"pivot\": \"Type\", \"value\": \"Value\", \"groupby\": [\"Year\"]}], \"mark\": \"rule\", \"encoding\": {\"opacity\": {\"condition\": {\"value\": 0.5, \"param\": \"hover\", \"empty\": false}, \"value\": 0}, \"tooltip\": [{\"field\": \"Revenues\", \"type\": \"quantitative\", \"title\": \"Revenues Billions of USD\"}, {\"field\": \"Outlays\", \"type\": \"quantitative\", \"title\": \"Outlays Billions of USD\"}]}, \"params\": [{\"name\": \"hover\", \"select\": {\"type\": \"point\", \"fields\": [\"Year\"], \"nearest\": true, \"on\": \"mouseover\", \"clear\": \"mouseout\"}}]}]}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Has debt finally stopped rising?\", \"subtitle\": [\"Total debt outstanding, by sector. Source: IMF\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"view\": {\"stroke\": \"transparent\"}, \"width\": 450, \"height\": 300, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/Global_IMF_Debt.csv\"}, \"transform\": [{\"fold\": [\"hh\", \"nfc\", \"gov\"], \"as\": [\"var\", \"val\"]}], \"mark\": {\"type\": \"area\", \"width\": 5}, \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false}}, \"y\": {\"field\": \"val\", \"title\": null, \"type\": \"quantitative\", \"axis\": {\"format\": \".0%\", \"gridColor\": \"lightgray\", \"zindex\": 0, \"gridWidth\": 0.5}}, \"color\": {\"field\": \"var\", \"type\": \"nominal\", \"legend\": {\"orient\": \"top-left\", \"columns\": 3, \"labelExpr\": \"{'hh':'Households','gov':'Governments','nfc':'Companies'}[datum.label]\"}, \"scale\": {\"scheme\": \"inferno\"}, \"title\": null}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"House Prices: New York and Las Vegas\", \"subtitle\": [\"All transactions house price index. Rebased to 2005. Source: FRED.\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/US_FRED_HousePrices_NYC_LV.csv\"}, \"transform\": [{\"calculate\": \"datum['New York']/567.14\", \"as\": \"New York index\"}, {\"calculate\": \"datum['Las Vegas']/219.34\", \"as\": \"Las Vegas index\"}, {\"calculate\": \"year(datum.Date)\", \"as\": \"year\"}, {\"fold\": [\"New York index\", \"Las Vegas index\"], \"as\": [\"city\", \"housePrice\"]}, {\"filter\": {\"field\": \"year\", \"gt\": 2004}}], \"height\": 400, \"width\": 250, \"mark\": {\"type\": \"line\", \"color\": \"rgb(128, 0, 0)\", \"strokeWidth\": 2}, \"encoding\": {\"x\": {\"field\": \"Date\", \"type\": \"temporal\", \"title\": null, \"axis\": {\"grid\": false}}, \"y\": {\"field\": \"housePrice\", \"type\": \"quantitative\", \"title\": null}, \"facet\": {\"field\": \"city\", \"columns\": 2, \"title\": null}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"What happened next?\", \"subtitle\": [\"Dow Jones Industrial Average, 1914-1929. Source: FRED\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 450, \"height\": 400, \"data\": {\"name\": \"myData\", \"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/US_FRED_DowJones.csv\"}, \"mark\": {\"type\": \"line\", \"color\": \"rgb(128,0,0)\", \"strokeWidth\": 2, \"opacity\": 1}, \"transform\": [{\"filter\": {\"field\": \"DATE\", \"range\": [{\"year\": 1914, \"month\": 1, \"day\": 1}, {\"year\": 1929, \"month\": 10, \"day\": 1}]}}], \"encoding\": {\"x\": {\"field\": \"DATE\", \"type\": \"temporal\", \"title\": null, \"scale\": {\"domain\": [{\"year\": 1914, \"month\": 1, \"day\": 1}, {\"year\": 1929, \"month\": 10, \"day\": 1}]}}, \"y\": {\"field\": \"DJIA\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": [0, 400]}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Price to earnings ratio - long run\", \"subtitle\": [\"Cyclically adjusted PE (P/E10). Source: Rober Shiller\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\"}, \"width\": 500, \"height\": 300, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/US_Shiller_CAPE.csv\"}, \"transform\": [{\"filter\": {\"field\": \"Date\", \"range\": [{\"year\": 1900, \"month\": 1, \"day\": 1}, {\"year\": 2023, \"month\": 11, \"day\": 1}]}}], \"mark\": {\"type\": \"line\", \"point\": false, \"strokeWidth\": 2, \"color\": \"rgb(0,67,127)\"}, \"encoding\": {\"x\": {\"field\": \"Date\", \"title\": null, \"type\": \"temporal\"}, \"y\": {\"field\": \"CAPE\", \"title\": null, \"type\": \"quantitative\"}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"The Great Crash - stock prices and earnings\", \"subtitle\": [\"Source: Rober Shiller\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\"}, \"width\": 500, \"height\": 300, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/US_Shiller_CAPE.csv\"}, \"transform\": [{\"filter\": {\"field\": \"Date\", \"range\": [{\"year\": 1900, \"month\": 1, \"day\": 1}, {\"year\": 1930, \"month\": 11, \"day\": 1}]}}], \"encoding\": {\"x\": {\"field\": \"Date\", \"title\": null, \"type\": \"temporal\"}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"point\": false, \"strokeWidth\": 2}, \"encoding\": {\"y\": {\"field\": \"PriceReal\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false, \"labelColor\": \"rgb(128,0,0)\", \"format\": \",.5\"}}, \"color\": {\"datum\": \"PriceReal\", \"scale\": {\"range\": [\"rgb(128,0,0)\", \"rgba(0,128,0,0.4)\"]}, \"legend\": {\"orient\": \"top-left\"}}}}, {\"mark\": {\"type\": \"line\", \"point\": true, \"strokeWidth\": 0}, \"encoding\": {\"y\": {\"field\": \"EarningsReal\", \"type\": \"quantitative\", \"title\": \"\", \"axis\": {\"grid\": false, \"labelColor\": \"green\", \"format\": \",.5\"}}, \"color\": {\"datum\": \"EarningsReal\", \"legend\": {\"orient\": \"top-left\"}}}}], \"resolve\": {\"scale\": {\"y\": \"independent\"}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"example of vertical concatenation\", \"title\": {\"text\": \"US prices, 1900-1930\", \"subtitle\": [\"Consumer Price Index, and its annual change. Source: Minneapolis Fed\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"dx\": 0, \"dy\": 0, \"anchor\": \"start\", \"color\": \"black\"}, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/US_MineapolisFed_CPI_longRun.csv\"}, \"transform\": [{\"filter\": {\"field\": \"year\", \"range\": [{\"year\": 1900, \"month\": 1, \"day\": 1}, {\"year\": 1930, \"month\": 10, \"day\": 1}]}}], \"vconcat\": [{\"mark\": {\"type\": \"line\", \"color\": \"rgb(128,0,0)\", \"strokeWidth\": 2, \"opacity\": 1}, \"width\": 400, \"height\": 200, \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"index\", \"type\": \"quantitative\", \"title\": null}}}, {\"mark\": {\"type\": \"bar\", \"color\": \"rgb(128,0,0)\", \"strokeWidth\": 2, \"opacity\": 1}, \"width\": 400, \"height\": 100, \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"change\", \"type\": \"quantitative\", \"axis\": {\"format\": \".0%\"}, \"title\": null}}}]}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"US inflation\", \"subtitle\": [\"CPI - annual change, with underlying CPI. Source: Minneapolis Fed\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"dx\": 0, \"dy\": 0, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 450, \"height\": 300, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/US_MineapolisFed_CPI_longRun.csv\"}, \"transform\": [{\"fold\": [\"index\", \"change\"], \"as\": [\"var\", \"val\"]}], \"mark\": {\"type\": \"line\", \"color\": \"rgb(128,0,0)\", \"strokeWidth\": 2, \"opacity\": 1}, \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"val\", \"type\": \"quantitative\", \"title\": null}, \"facet\": {\"field\": \"var\", \"columns\": 1, \"title\": null}}, \"resolve\": {\"scale\": {\"y\": \"independent\"}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"US inflation\", \"subtitle\": [\"CPI - annual change. Source: Minneapolis Fed\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"dx\": 0, \"dy\": 0, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 450, \"height\": 300, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/US_MineapolisFed_CPI_longRun.csv\"}, \"mark\": {\"type\": \"bar\", \"color\": \"rgb(128,0,0)\", \"strokeWidth\": 2, \"opacity\": 1}, \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"change\", \"type\": \"quantitative\", \"title\": null}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"The Roaring Twenties\", \"subtitle\": [\"Dow Jones Industrial Average. Source: FRED\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 500, \"height\": 450, \"data\": {\"name\": \"myData\", \"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/US_FRED_DowJones.csv\"}, \"mark\": {\"type\": \"line\", \"color\": \"rgb(128,0,0)\", \"strokeWidth\": 2, \"opacity\": 1}, \"transform\": [{\"filter\": {\"field\": \"DATE\", \"range\": [{\"year\": 1914, \"month\": 1, \"day\": 1}, {\"year\": 1929, \"month\": 10, \"day\": 1}]}}], \"encoding\": {\"x\": {\"field\": \"DATE\", \"type\": \"temporal\", \"title\": null, \"scale\": {\"domain\": [{\"year\": 1914, \"month\": 1, \"day\": 1}, {\"year\": 1930, \"month\": 10, \"day\": 1}]}}, \"y\": {\"field\": \"DJIA\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": [0, 400]}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"The Roaring Twenties\", \"subtitle\": [\"Dow Jones Industrial Average. Source: FRED\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"dx\": 0, \"dy\": 0, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 150, \"data\": {\"name\": \"myData\", \"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/US_FRED_DowJones.csv\"}, \"mark\": {\"type\": \"line\", \"color\": \"rgb(128,0,0)\", \"strokeWidth\": 2, \"opacity\": 1}, \"transform\": [{\"filter\": {\"field\": \"DATE\", \"range\": [{\"year\": 1914, \"month\": 1, \"day\": 1}, {\"year\": 1927, \"month\": 10, \"day\": 1}]}}], \"encoding\": {\"x\": {\"field\": \"DATE\", \"type\": \"temporal\", \"title\": null, \"scale\": {\"domain\": [{\"year\": 1914, \"month\": 1, \"day\": 1}, {\"year\": 1930, \"month\": 10, \"day\": 1}]}}, \"y\": {\"field\": \"DJIA\", \"type\": \"quantitative\", \"title\": null, \"scale\": {\"domain\": [0, 200]}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Assets and wages\", \"subtitle\": [\"Correlation\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 600, \"height\": 80, \"data\": {\"name\": \"myData\", \"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/example_bondYields.csv\"}, \"transform\": [{\"fold\": [\"wages\", \"asset1\", \"asset2\"], \"as\": [\"asset\", \"value\"]}, {\"filter\": \"datum.value>0\"}], \"mark\": {\"type\": \"line\", \"point\": {\"color\": \"rgb(128,0,0)\"}, \"color\": \"rgb(128,0,0)\", \"strokeWidth\": 1}, \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"quantitative\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"facet\": {\"field\": \"asset\", \"type\": \"nominal\", \"title\": null, \"columns\": 1}, \"color\": {\"field\": \"asset\", \"legend\": null, \"scale\": {\"range\": [\"green\", \"blue\", \"rgb(128,0,0)\"]}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Assets and wages\", \"subtitle\": [\"Correlation\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"data\": {\"name\": \"myData\", \"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/example_bondYields.csv\"}, \"transform\": [{\"fold\": [\"wages\", \"asset2\"], \"as\": [\"asset\", \"value\"]}], \"mark\": {\"type\": \"bar\"}, \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"quantitative\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"stack\": true, \"title\": null}, \"color\": {\"field\": \"asset\", \"legend\": null, \"scale\": {\"range\": [\"blue\", \"rgb(128,0,0)\"]}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Assets and wages\", \"subtitle\": [\"Correlation\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 300, \"height\": 300, \"data\": {\"name\": \"myData\", \"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/example_bondYields.csv\"}, \"transform\": [{\"fold\": [\"wages\", \"asset1\"], \"as\": [\"asset\", \"value\"]}, {\"filter\": \"datum.value>0\"}], \"mark\": {\"type\": \"line\", \"point\": {\"color\": \"rgb(128,0,0)\"}, \"color\": \"rgb(128,0,0)\", \"strokeWidth\": 1}, \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"quantitative\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"color\": {\"field\": \"asset\", \"legend\": null, \"scale\": {\"range\": [\"blue\", \"rgb(128,0,0)\"]}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Three assets: discounted payoffs\", \"subtitle\": [\"Valuation of future payoffs at various discount rates\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 200, \"height\": 300, \"data\": {\"name\": \"myData\", \"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/example_bondYields.csv\"}, \"transform\": [{\"fold\": [\"PV_b1\", \"PV_b2\", \"PV_b3\"], \"as\": [\"asset\", \"value\"]}], \"mark\": {\"type\": \"line\", \"point\": {\"color\": \"rgb(128,0,0)\"}, \"color\": \"rgb(128,0,0)\", \"strokeWidth\": 1}, \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"quantitative\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"facet\": {\"field\": \"asset\", \"type\": \"nominal\", \"title\": null, \"columns\": 3}, \"color\": {\"field\": \"riskFreeRate\"}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Three assets\", \"subtitle\": [\"Payoffs over time\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 200, \"height\": 300, \"data\": {\"name\": \"myData\", \"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/example_bondYields.csv\"}, \"transform\": [{\"fold\": [\"bond1\", \"bond2\", \"bond3\"], \"as\": [\"asset\", \"value\"]}, {\"filter\": \"datum.riskFreeRate==0.01\"}], \"mark\": {\"type\": \"line\", \"point\": {\"color\": \"rgb(128,0,0)\"}, \"color\": \"rgb(128,0,0)\", \"strokeWidth\": 1}, \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"quantitative\", \"title\": null}, \"y\": {\"field\": \"value\", \"type\": \"quantitative\", \"title\": null}, \"facet\": {\"field\": \"asset\", \"type\": \"nominal\", \"title\": null, \"columns\": 3}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Compound returns\", \"subtitle\": [\"Returns from $1 invested today\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 500, \"height\": 300, \"data\": {\"name\": \"myData\", \"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/example_bondYields.csv\"}, \"transform\": [{\"calculate\": \"1/datum.discountFactor\", \"as\": \"return\"}], \"mark\": {\"type\": \"line\", \"strokeWidth\": 2, \"opacity\": 1}, \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"quantitative\", \"title\": null}, \"y\": {\"field\": \"return\", \"type\": \"quantitative\", \"title\": null}, \"color\": {\"type\": \"nominal\", \"legend\": {\"format\": \".0%\", \"orient\": \"top-left\", \"fillColor\": \"white\", \"strokeColor\": \"rgb(128,0,0)\", \"cornerRadius\": 5, \"padding\": 5}, \"field\": \"riskFreeRate\", \"title\": \"RF Rate\"}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Dollar value: up and up\", \"subtitle\": [\"British pounds bought with $1. Source: BoE, FRED\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"dx\": 0, \"dy\": 0, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 250, \"height\": 300, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/US_BoE_USDGBP_LongRun.csv\"}, \"mark\": {\"type\": \"line\", \"color\": \"rgb(128,0,0)\", \"strokeWidth\": 2, \"opacity\": 1}, \"transform\": [{\"calculate\": \"1/datum.usdGBP\", \"as\": \"dollarValue\"}, {\"calculate\": \"year(datum.Year)\", \"as\": \"time\"}, {\"filter\": \"datum.time>1940\"}], \"encoding\": {\"x\": {\"field\": \"Year\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"dollarValue\", \"type\": \"quantitative\", \"title\": null}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"title\": {\"text\": \"Dollar value: down and down\", \"subtitle\": [\"$100 / Consumer Prices Index. Source: Minneapolis Fed\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"dx\": 0, \"dy\": 0, \"anchor\": \"start\", \"color\": \"black\"}, \"width\": 250, \"height\": 300, \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/US_MineapolisFed_CPI_longRun.csv\"}, \"mark\": {\"type\": \"line\", \"color\": \"rgb(128,0,0)\", \"strokeWidth\": 2, \"opacity\": 1}, \"transform\": [{\"calculate\": \"100/datum.index\", \"as\": \"dollarValue\"}, {\"calculate\": \"year(datum.year)\", \"as\": \"time\"}, {\"filter\": \"datum.time>1940\"}], \"encoding\": {\"x\": {\"field\": \"year\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"dollarValue\", \"type\": \"quantitative\", \"title\": null}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/JamesFKean/RA_work/main/unionsv4.csv\"}, \"title\": {\"text\": \"Unionisation Rates\", \"subtitle\": [\"Most and least unionised (top 5), plus US, UK, OECD\", \"Source: OECD\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\"}, \"height\": 300, \"width\": 350, \"transform\": [{\"filter\": \"datum.Time == yearSelector\"}], \"params\": [{\"name\": \"yearSelector\", \"value\": 2000, \"bind\": {\"input\": \"range\", \"min\": 2000, \"max\": 2020, \"step\": 1, \"name\": \"Year:\"}}], \"mark\": {\"type\": \"bar\"}, \"encoding\": {\"y\": {\"field\": \"Country\", \"sort\": {\"field\": \"rank\", \"order\": \"descending\"}, \"type\": \"ordinal\", \"title\": null}, \"x\": {\"field\": \"Value\", \"aggregate\": \"sum\", \"scale\": {\"domain\": [0, 100]}, \"title\": \"% Of Work Force In Labour Union\"}, \"color\": {\"field\": \"Country\", \"scale\": {\"domain\": [\"Colombia\", \"Denmark\", \"Iceland\", \"Korea\", \"OECD - Total\", \"Sweden\", \"T\\u00fcrkiye\", \"United Kingdom\", \"United States\", \"Finland\", \"Lithuania\", \"Norway\", \"France\"], \"range\": [\"darkred\"]}, \"legend\": null}, \"tooltip\": [{\"field\": \"Value\", \"title\": \"% of labour force unionised\"}, {\"field\": \"Time\", \"title\": \"Year\"}, {\"field\": \"Country\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/e4e/ch3_Work/IGMresponsesMinWage.csv\"}, \"title\": {\"text\": [\"Raising the federal minimum wage to $9 per hour would make it noticeably\", \"harder for low-skilled workers to find employment.\"], \"fontSize\": 12, \"anchor\": \"start\", \"subtitle\": [\"Source: IGN\", \"\"], \"subtitleFontSize\": 10, \"subtitleFontStyle\": \"italic\"}, \"width\": 350, \"height\": 300, \"mark\": {\"type\": \"bar\", \"width\": {\"band\": 0.8}}, \"params\": [{\"name\": \"hover\", \"select\": {\"type\": \"point\", \"fields\": [\"Uni2\"], \"toggle\": true, \"on\": \"mouseover\"}}], \"encoding\": {\"x\": {\"field\": \"Confidence Numeric\", \"type\": \"ordinal\", \"axis\": {\"labelExpr\": \"{'0': 'Uncertain', '1': 'Disagree', '2': 'Agree'}[datum.label]\", \"labelAngle\": 0}, \"scale\": {\"paddingOuter\": 0.6}, \"title\": \"Response\"}, \"y\": {\"field\": \"uni_employment_pct\", \"aggregate\": \"ci0\", \"axis\": {\"format\": \"%\"}, \"title\": \"Portion of Response\"}, \"color\": {\"field\": \"Uni2\", \"legend\": {\"title\": null}}, \"opacity\": {\"condition\": {\"test\": {\"param\": \"hover\"}, \"value\": 1}, \"value\": 0.5}, \"tooltip\": [{\"field\": \"Uni\", \"title\": \"University\"}, {\"field\": \"uni_employment_pct\", \"format\": \"%\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"params\": [{\"name\": \"slider_1\", \"value\": 2021, \"bind\": {\"input\": \"range\", \"min\": 1980, \"max\": 2021, \"step\": 1, \"name\": \"Year\"}}], \"vconcat\": [{\"title\": {\"text\": \"Gini Coefficient, 1980-2021\", \"subtitle\": [\"Source: WID\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"color\": \"black\"}, \"width\": 600, \"height\": 250, \"data\": {\"url\": \"https://unpkg.com/world-atlas@1.1.4/world/110m.json\", \"format\": {\"type\": \"topojson\", \"feature\": \"countries\"}}, \"transform\": [{\"calculate\": \"parseInt(datum.id)\", \"as\": \"id_N\"}, {\"lookup\": \"id_N\", \"from\": {\"key\": \"id\", \"fields\": [\"name\"], \"data\": {\"url\": \"https://raw.githubusercontent.com/RDeconomist/RDeconomist.github.io/main/charts/maps/dataWorldCountryNamesIDs.json\"}}}, {\"lookup\": \"name\", \"from\": {\"data\": {\"url\": \"https://raw.githubusercontent.com/maddyht20/maddyht20.github.io/main/WID%20New%201980-2021%20final.csv\"}, \"key\": \"Country\", \"fields\": [\"1980\", \"1981\", \"1982\", \"1983\", \"1984\", \"1985\", \"1986\", \"1987\", \"1988\", \"1989\", \"1990\", \"1991\", \"1992\", \"1993\", \"1994\", \"1995\", \"1996\", \"1997\", \"1998\", \"1999\", \"2000\", \"2001\", \"2002\", \"2003\", \"2004\", \"2005\", \"2006\", \"2007\", \"2008\", \"2009\", \"2010\", \"2011\", \"2012\", \"2013\", \"2014\", \"2015\", \"2016\", \"2017\", \"2018\", \"2019\", \"2020\", \"2021\"]}}, {\"fold\": [\"1980\", \"1981\", \"1982\", \"1983\", \"1984\", \"1985\", \"1986\", \"1987\", \"1988\", \"1989\", \"1990\", \"1991\", \"1992\", \"1993\", \"1994\", \"1995\", \"1996\", \"1997\", \"1998\", \"1999\", \"2000\", \"2001\", \"2002\", \"2003\", \"2004\", \"2005\", \"2006\", \"2007\", \"2008\", \"2009\", \"2010\", \"2011\", \"2012\", \"2013\", \"2014\", \"2015\", \"2016\", \"2017\", \"2018\", \"2019\", \"2020\", \"2021\"], \"as\": [\"Year\", \"Value\"]}, {\"calculate\": \"toNumber(datum.Value)\", \"as\": \"Value_N\"}, {\"filter\": \"datum.Year==slider_1\"}], \"projection\": {\"type\": \"naturalEarth1\"}, \"mark\": {\"type\": \"geoshape\", \"stroke\": \"gbp(25, 25, 25)\", \"strokeWidth\": 0.2}, \"encoding\": {\"tooltip\": [{\"field\": \"name\", \"title\": \"Country\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}, {\"field\": \"Value_N\", \"title\": \"Gini Coefficient\", \"type\": \"quantitative\"}], \"color\": {\"field\": \"Value_N\", \"type\": \"quantitative\", \"scale\": {\"scheme\": \"reds\"}, \"title\": \"Gini\", \"legend\": {\"orient\": \"left\", \"direction\": \"vertical\"}}}}]}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"values\": [{\"Year\": 946684800000, \"Value\": 0.8186581284, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 27484, \"pct_tote\": 0.0081865813}, {\"Year\": 978307200000, \"Value\": 0.6351039261, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 27712, \"pct_tote\": 0.0063510393}, {\"Year\": 1009843200000, \"Value\": 0.5582593759, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 27944, \"pct_tote\": 0.0055825938}, {\"Year\": 1041379200000, \"Value\": 0.4393891074, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 28221, \"pct_tote\": 0.0043938911}, {\"Year\": 1072915200000, \"Value\": 0.3785488959, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 28530, \"pct_tote\": 0.003785489}, {\"Year\": 1104537600000, \"Value\": 0.4124783362, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 28850, \"pct_tote\": 0.0041247834}, {\"Year\": 1136073600000, \"Value\": 0.5044958473, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 29138, \"pct_tote\": 0.0050449585}, {\"Year\": 1167609600000, \"Value\": 0.5650486759, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 29378, \"pct_tote\": 0.0056504868}, {\"Year\": 1199145600000, \"Value\": 0.4826515458, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 29628, \"pct_tote\": 0.0048265155}, {\"Year\": 1230768000000, \"Value\": 0.6482370696, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 29156, \"pct_tote\": 0.0064823707}, {\"Year\": 1262304000000, \"Value\": 0.574791296, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 29228, \"pct_tote\": 0.005747913}, {\"Year\": 1293840000000, \"Value\": 0.6467424603, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 29378, \"pct_tote\": 0.0064674246}, {\"Year\": 1325376000000, \"Value\": 0.8485705627, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 29697, \"pct_tote\": 0.0084857056}, {\"Year\": 1356998400000, \"Value\": 1.9472090004, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 30043, \"pct_tote\": 0.01947209}, {\"Year\": 1388534400000, \"Value\": 2.0290043572, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 30754, \"pct_tote\": 0.0202900436}, {\"Year\": 1420070400000, \"Value\": 2.3845293272, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 31285, \"pct_tote\": 0.0238452933}, {\"Year\": 1451606400000, \"Value\": 2.8477822581, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 31744, \"pct_tote\": 0.0284778226}, {\"Year\": 1483228800000, \"Value\": 2.7544686028, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 32057, \"pct_tote\": 0.027544686}, {\"Year\": 1514764800000, \"Value\": 2.4075957952, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 32439, \"pct_tote\": 0.024075958}, {\"Year\": 1546300800000, \"Value\": 2.7317906034, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 32799, \"pct_tote\": 0.027317906}, {\"Year\": 1577836800000, \"Value\": 3.2883201575, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 32509, \"pct_tote\": 0.0328832016}, {\"Year\": 1609459200000, \"Value\": 2.8358070787, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 32407, \"pct_tote\": 0.0283580708}, {\"Year\": 1640995200000, \"Value\": 3.151722453, \"type\": \"zh\", \"datype\": \"Percentage\", \"Val2\": 32744, \"pct_tote\": 0.0315172245}, {\"Year\": 946684800000, \"Value\": 27484, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 27484, \"pct_tote\": 1}, {\"Year\": 978307200000, \"Value\": 27712, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 27712, \"pct_tote\": 1}, {\"Year\": 1009843200000, \"Value\": 27944, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 27944, \"pct_tote\": 1}, {\"Year\": 1041379200000, \"Value\": 28221, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 28221, \"pct_tote\": 1}, {\"Year\": 1072915200000, \"Value\": 28530, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 28530, \"pct_tote\": 1}, {\"Year\": 1104537600000, \"Value\": 28850, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 28850, \"pct_tote\": 1}, {\"Year\": 1136073600000, \"Value\": 29138, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 29138, \"pct_tote\": 1}, {\"Year\": 1167609600000, \"Value\": 29378, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 29378, \"pct_tote\": 1}, {\"Year\": 1199145600000, \"Value\": 29628, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 29628, \"pct_tote\": 1}, {\"Year\": 1230768000000, \"Value\": 29156, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 29156, \"pct_tote\": 1}, {\"Year\": 1262304000000, \"Value\": 29228, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 29228, \"pct_tote\": 1}, {\"Year\": 1293840000000, \"Value\": 29378, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 29378, \"pct_tote\": 1}, {\"Year\": 1325376000000, \"Value\": 29697, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 29697, \"pct_tote\": 1}, {\"Year\": 1356998400000, \"Value\": 30043, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 30043, \"pct_tote\": 1}, {\"Year\": 1388534400000, \"Value\": 30754, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 30754, \"pct_tote\": 1}, {\"Year\": 1420070400000, \"Value\": 31285, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 31285, \"pct_tote\": 1}, {\"Year\": 1451606400000, \"Value\": 31744, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 31744, \"pct_tote\": 1}, {\"Year\": 1483228800000, \"Value\": 32057, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 32057, \"pct_tote\": 1}, {\"Year\": 1514764800000, \"Value\": 32439, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 32439, \"pct_tote\": 1}, {\"Year\": 1546300800000, \"Value\": 32799, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 32799, \"pct_tote\": 1}, {\"Year\": 1577836800000, \"Value\": 32509, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 32509, \"pct_tote\": 1}, {\"Year\": 1609459200000, \"Value\": 32407, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 32407, \"pct_tote\": 1}, {\"Year\": 1640995200000, \"Value\": 32744, \"type\": \"total\", \"datype\": \"Total\", \"Val2\": 32744, \"pct_tote\": 1}, {\"Year\": 946684800000, \"Value\": 225, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 27484, \"pct_tote\": 0.0081865813}, {\"Year\": 978307200000, \"Value\": 176, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 27712, \"pct_tote\": 0.0063510393}, {\"Year\": 1009843200000, \"Value\": 156, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 27944, \"pct_tote\": 0.0055825938}, {\"Year\": 1041379200000, \"Value\": 124, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 28221, \"pct_tote\": 0.0043938911}, {\"Year\": 1072915200000, \"Value\": 108, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 28530, \"pct_tote\": 0.003785489}, {\"Year\": 1104537600000, \"Value\": 119, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 28850, \"pct_tote\": 0.0041247834}, {\"Year\": 1136073600000, \"Value\": 147, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 29138, \"pct_tote\": 0.0050449585}, {\"Year\": 1167609600000, \"Value\": 166, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 29378, \"pct_tote\": 0.0056504868}, {\"Year\": 1199145600000, \"Value\": 143, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 29628, \"pct_tote\": 0.0048265155}, {\"Year\": 1230768000000, \"Value\": 189, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 29156, \"pct_tote\": 0.0064823707}, {\"Year\": 1262304000000, \"Value\": 168, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 29228, \"pct_tote\": 0.005747913}, {\"Year\": 1293840000000, \"Value\": 190, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 29378, \"pct_tote\": 0.0064674246}, {\"Year\": 1325376000000, \"Value\": 252, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 29697, \"pct_tote\": 0.0084857056}, {\"Year\": 1356998400000, \"Value\": 585, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 30043, \"pct_tote\": 0.01947209}, {\"Year\": 1388534400000, \"Value\": 624, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 30754, \"pct_tote\": 0.0202900436}, {\"Year\": 1420070400000, \"Value\": 746, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 31285, \"pct_tote\": 0.0238452933}, {\"Year\": 1451606400000, \"Value\": 904, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 31744, \"pct_tote\": 0.0284778226}, {\"Year\": 1483228800000, \"Value\": 883, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 32057, \"pct_tote\": 0.027544686}, {\"Year\": 1514764800000, \"Value\": 781, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 32439, \"pct_tote\": 0.024075958}, {\"Year\": 1546300800000, \"Value\": 896, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 32799, \"pct_tote\": 0.027317906}, {\"Year\": 1577836800000, \"Value\": 1069, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 32509, \"pct_tote\": 0.0328832016}, {\"Year\": 1609459200000, \"Value\": 919, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 32407, \"pct_tote\": 0.0283580708}, {\"Year\": 1640995200000, \"Value\": 1032, \"type\": \"zh\", \"datype\": \"Total\", \"Val2\": 32744, \"pct_tote\": 0.0315172245}]}, \"title\": {\"text\": \"Zero Hours Contracts\", \"anchor\": \"start\", \"subtitle\": [\"Thousands. Source: ONS\", \"\"]}, \"width\": 400, \"height\": 300, \"params\": [{\"name\": \"View\", \"select\": {\"type\": \"point\", \"fields\": [\"datype\"]}, \"bind\": {\"input\": \"select\", \"options\": [\"Percentage\", \"Total\"], \"name\": \"Type:\"}, \"value\": \"Total\"}], \"transform\": [{\"filter\": {\"param\": \"View\"}}, {\"filter\": \"datum.type!='total'\"}], \"mark\": {\"type\": \"line\", \"point\": false}, \"encoding\": {\"x\": {\"field\": \"Year\", \"type\": \"temporal\", \"title\": null}, \"y\": {\"field\": \"Value\", \"type\": \"quantitative\", \"title\": \"Zero Hour Contracts\", \"axis\": {\"format\": {\"value\": \"quantitative\", \"condition\": {\"test\": \"datum.datype==Percentage\", \"value\": \"%\"}}}}, \"color\": {\"field\": \"type\", \"legend\": null, \"scale\": {\"range\": [\"#a12800\"]}}}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/JamesFKean/RA_work/main/underemployment1.csv\"}, \"title\": {\"text\": \"Underemployed % of Labor Force\", \"anchor\": \"start\", \"subtitle\": \"Sources: FRED & ONS\"}, \"width\": 400, \"height\": 300, \"params\": [{\"name\": \"View\", \"select\": {\"type\": \"point\", \"fields\": [\"cont\"]}, \"bind\": {\"input\": \"select\", \"options\": [\"UK\", \"US\"], \"name\": \"Country:\"}, \"value\": \"US\"}, {\"name\": \"hover\", \"select\": {\"type\": \"point\", \"fields\": [\"type\"], \"toggle\": true, \"on\": \"mouseover\"}}], \"transform\": [{\"filter\": {\"param\": \"View\"}}], \"mark\": {\"type\": \"line\", \"point\": false}, \"encoding\": {\"x\": {\"field\": \"DATE\", \"type\": \"temporal\"}, \"y\": {\"field\": \"underpct\", \"type\": \"quantitative\", \"title\": \"% of Workers Underemployed\", \"axis\": {\"format\": \"%\"}}, \"color\": {\"field\": \"type\", \"scale\": {\"range\": [\"#a12800\", \"#290c03\"]}, \"legend\": null}, \"tooltip\": [{\"field\": \"underpct\", \"title\": \" Underemplyed workers %\", \"format\": \"0.2f\"}, {\"field\": \"DATE\", \"title\": \" Year\", \"type\": \"temporal\"}]}}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"description\": \"Benefit replacement rate, 2022, OECD data. 'Proportion of previous in-work household income maintained after 2, 6, 12, 24 and 60 months of unemployment. Calculations refer to a single person without children whose previous in-work earnings were 67% of the average wage.'\", \"data\": {\"url\": \"https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/OECD_benefit_replacement2022.csv\", \"format\": {\"type\": \"csv\"}}, \"config\": {\"view\": {\"stroke\": \"transparent\"}}, \"height\": 400, \"width\": 300, \"title\": {\"text\": \"Benefit replacement rate\", \"subtitle\": [\"Long and short-term replacement of previous income, source: OECD\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10, \"anchor\": \"start\", \"color\": \"black\"}, \"transform\": [{\"filter\": {\"field\": \"UE Duration\", \"oneOf\": [\"2-month\", \"2-year\"]}}, {\"calculate\": \"datum['Replacement Rate'] / 100\", \"as\": \"Replacement Rate\"}], \"encoding\": {\"y\": {\"field\": \"ISO3\", \"type\": \"nominal\", \"title\": null, \"sort\": {\"order\": \"descending\", \"op\": \"average\", \"field\": \"Rank\"}, \"axis\": {\"labelAngle\": 0, \"labelOffset\": 0, \"labelPadding\": 0, \"tickOpacity\": 0.6}}, \"x\": {\"field\": \"Replacement Rate\", \"type\": \"quantitative\", \"title\": null, \"axis\": {\"gridOpacity\": 0.6, \"tickOpacity\": 0.6, \"format\": \"%\"}}, \"tooltip\": [{\"field\": \"Country\", \"title\": \"Country\"}, {\"field\": \"UE Duration\", \"title\": \"Duration\"}, {\"field\": \"Replacement Rate\", \"title\": \"Replacement Rate\", \"format\": \"~%\"}]}, \"layer\": [{\"mark\": \"line\", \"encoding\": {\"detail\": {\"field\": \"ISO3\", \"type\": \"nominal\"}, \"color\": {\"value\": \"grey\"}}}, {\"mark\": {\"type\": \"point\", \"filled\": true}, \"encoding\": {\"color\": {\"field\": \"UE Duration\", \"type\": \"ordinal\", \"scale\": {\"domain\": [\"2-month\", \"2-year\"], \"range\": [\"#911a24\", \"#e6959c\"]}, \"legend\": {\"orient\": \"top-right\", \"title\": null, \"labelFontSize\": 12}}, \"size\": {\"value\": 100}, \"opacity\": {\"value\": 1}}}]}" |
"{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"url\": \"https://raw.githubusercontent.com/JamesFKean/JamesFKean.github.io/main/US_prt_rtv4.csv\"}, \"title\": {\"text\": \"US Participation Rate 1960-2023\", \"anchor\": \"start\", \"subtitle\": [\"Sources: Bureau of Labor Statistics & the OECD\", \"\"], \"subtitleFontStyle\": \"italic\", \"subtitleFontSize\": 10}, \"width\": 400, \"height\": 300, \"params\": [{\"name\": \"View\", \"select\": {\"type\": \"point\", \"fields\": [\"dum\"]}, \"bind\": {\"input\": \"select\", \"options\": [\"All\", \"Gender\", \"Age\"], \"name\": \"Demographic:\"}, \"value\": \"All\"}, {\"name\": \"hover\", \"select\": {\"type\": \"point\", \"fields\": [\"Series ID\"], \"toggle\": true, \"on\": \"mouseover\"}}], \"transform\": [{\"filter\": {\"param\": \"View\"}}], \"mark\": {\"type\": \"line\", \"point\": false}, \"encoding\": {\"x\": {\"field\": \"Year\", \"axis\": {\"tickMinStep\": 5, \"gridOpacity\": 0.4}, \"type\": \"temporal\"}, \"y\": {\"field\": \"Value\", \"type\": \"quantitative\", \"axis\": {\"format\": \"%\", \"gridOpacity\": 0.4}, \"title\": \"Labor Force Participation Rate\"}, \"color\": {\"field\": \"Series ID\", \"scale\": {\"range\": [\"rgb(128,0,0)\", \"green\", \"red\", \"yellow\", \"blue\", \"grey\"]}, \"legend\": {\"title\": \"Demographic:\"}}, \"opacity\": {\"condition\": {\"test\": {\"param\": \"hover\"}, \"value\": 1}, \"value\": 0.2}, \"tooltip\": [{\"field\": \"Year\", \"type\": \"temporal\", \"format\": \"%Y\"}, {\"field\": \"Value\", \"type\": \"quantitative\", \"format\": \"%\", \"title\": \"Labor Force Participation Rate\"}, {\"field\": \"Series ID\", \"type\": \"nominal\", \"title\": \"Group\"}]}}" |