{"$schema":"https://vega.github.io/schema/vega-lite/v3.json","width":600,"height":400,"data":{"url":"https://raw.githubusercontent.com/dylanosaurs/datavisTK/master/GHE2016_Death_Rates_injury_infection.csv"},"mark":"circle","selection":{"highlight":{"type":"single","on":"mouseover","empty":"none"},"select":{"type":"multi"}},"encoding":{"x":{"field":"country","type":"nominal","scale":{"type":"log"},"axis":{"grid":false}},"y":{"field":"cause","type":"nominal","scale":{"zero":false},"axis":{"grid":false}},"fillOpacity":{"condition":{"selection":"select","value":1},"value":0.3},"strokeWidth":{"condition":[{"test":{"and":[{"selection":"select"},"length(data('select_store')) > 0"]},"value":2},{"test":{"selection":"highlight"},"value":1}],"value":0},"size":{"field":"death rate by 100000","type":"quantitative","scale":{"range":[0,5000],"type":"pow","exponent":1.2}},"color":{"field":"death rate by 100000","type":"quantitative","scale":{"scheme":"reds"}}}}
{"$schema":"https://vega.github.io/schema/vega-lite/v3.json","width":750,"height":400,"data":{"url":"https://gicentre.github.io/data/geoTutorials/world-110m.json","format":{"type":"topojson","feature":"countries1"}},"projection":{"type":"equirectangular","rotate":[-156,0,0]},"mark":"geoshape","config":{"view":{"stroke":""},"legend":{"orient":"bottom-right","offset":0}},"transform":[{"lookup":"id","from":{"data":{"url":"https://raw.githubusercontent.com/dylanosaurs/datavisTK/master/GHE2016_Death_Rates_Country_allCauses.csv"},"key":"id","fields":["allCauses","country"]}}],"encoding":{"color":{"field":"allCauses","type":"quantitative","legend":{"title":"Death rate by 100.000"},"scale":{"scheme":"lightgreyred"}},"tooltip":[{"field":"country","type":"nominal"},{"field":"allCauses","type":"quantitative"}]}}
{"$schema":"https://vega.github.io/schema/vega-lite/v3.json","columns":1,"repeat":["communicable","noncommunicable","injury"],"resolve":{"scale":{"color":"independent"}},"spec":{"width":400,"height":200,"data":{"url":"https://gicentre.github.io/data/geoTutorials/world-110m.json","format":{"type":"topojson","feature":"countries1"}},"projection":{"type":"equirectangular","rotate":[-156,0,0]},"mark":"geoshape","config":{"view":{"stroke":""},"legend":{"orient":"bottom-right","offset":0}},"transform":[{"lookup":"id","from":{"data":{"url":"https://raw.githubusercontent.com/dylanosaurs/datavisTK/master/GHE2016_Death_Rates_allCountry_Repeat.csv"},"key":"id","fields":["communicable","noncommunicable","injury","country"]}}],"encoding":{"color":{"field":{"repeat":"repeat"},"type":"quantitative","scale":{"scheme":"lightgreyred"}}}}}
{"$schema":"https://vega.github.io/schema/vega-lite/v3.json","height":400,"width":100,"data":{"url":"https://raw.githubusercontent.com/dylanosaurs/datavisTK/master/earthquakeEvent.csv"},"mark":"bar","selection":{"mySelection":{"type":"single","nearest":true,"fields":["Death_Injuries_Missing"]}},"encoding":{"x":{"field":"Year","type":"temporal","axis":{"grid":false}},"y":{"field":"Death_Injuries_Missing","type":"quantitative","aggregate":"sum"},"color":{"field":"Country","type":"nominal","legend":null},"column":{"field":"Country","type":"nominal"},"tooltip":[{"field":"Year","type":"temporal","timeUnit":"year"},{"field":"Country","type":"nominal"},{"field":"Death_Injuries_Missing","type":"quantitative"},{"field":"Event","type":"nominal"}]}}