{ "name": "co2-fossil-by-nation", "title": "CO2 Emissions from Fossil Fuels since 1751, By Nation", "sources": [ { "name": "CDIAC", "path": "http://cdiac.esd.ornl.gov/ftp/ndp030/CSV-FILES/nation.1751_2011.csv", "title": "CO2 Emissions from Fossil Fuels since 1751, By Nation" } ], "licenses": [ { "name": "ODC-PDDL-1.0", "path": "http://opendatacommons.org/licenses/pddl/", "title": "Open Data Commons Public Domain Dedication and License v1.0" } ], "resources": [ { "name": "fossil-fuel-co2-emissions-by-nation", "path": "data/fossil-fuel-co2-emissions-by-nation.csv", "schema": { "fields": [ { "name": "Year", "description": "Year", "type": "year" }, { "name": "Country", "description": "Nation", "type": "string" }, { "name": "Total", "description": "Total carbon emissions from fossil fuel consumption and cement production (million metric tons of C)", "type": "number" }, { "name": "Solid Fuel", "description": "Carbon emissions from solid fuel consumption", "type": "number" }, { "name": "Liquid Fuel", "description": "Carbon emissions from liquid fuel consumption", "type": "number" }, { "name": "Gas Fuel", "description": "Carbon emissions from gas fuel consumption", "type": "number" }, { "name": "Cement", "description": "Carbon emissions from cement production", "type": "number" }, { "name": "Gas Flaring", "description": "Carbon emissions from gas flaring", "type": "number" }, { "name": "Per Capita", "description": "Per capita carbon emissions (metric tons of carbon; after 1949 only)", "type": "number" }, { "name": "Bunker fuels (Not in Total)", "description": "Carbon emissions from bunker fuels (not included in total)", "type": "number" } ] } } ], "views": [ { "name": "carbon-emissions-2014", "title": "Countries by carbon emission in 2014 (with >50,000). Values are million kg of C.", "resources": [ { "name": "fossil-fuel-co2-emissions-by-nation", "transform": [ { "type": "filter", "expression": "data['Year'] == 2014" }, { "type": "filter", "expression": "data['Total'] > 50000" } ] } ], "specType": "vega", "spec": { "title": "Countries by carbon emission in 2014 (with >50,000). Values are million kg of C.", "$schema": "https://vega.github.io/schema/vega/v4.json", "width": 700, "height": 550, "padding": 5, "data": [ { "name": "fossil-fuel-co2-emissions-by-nation" } ], "scales": [ { "name": "yscale", "type": "band", "domain": { "data": "fossil-fuel-co2-emissions-by-nation", "field": "Country", "sort": {"field": "Total", "op": "max"} }, "range": "height", "padding": 0.01 }, { "name": "xscale", "type": "linear", "domain": { "data": "fossil-fuel-co2-emissions-by-nation", "field": "Total" }, "range": "width", "round": true, "zero": true, "nice": true } ], "axes": [ { "orient": "left", "scale": "yscale", "tickSize": 0, "labelPadding": 4, "zindex": 1 }, { "orient": "bottom", "scale": "xscale" } ], "marks": [ { "type": "group", "from": { "facet": { "data": "fossil-fuel-co2-emissions-by-nation", "name": "facet", "groupby": "Country" } }, "encode": { "enter": { "y": { "scale": "yscale", "field": "Country" } } }, "signals": [ { "name": "height", "update": "bandwidth('yscale')" } ], "scales": [ { "name": "pos", "type": "band", "range": "height", "domain": { "data": "facet", "field": "position" } } ], "marks": [ { "name": "bars", "from": { "data": "facet" }, "type": "rect", "encode": { "enter": { "y": { "scale": "pos", "field": "position" }, "height": { "scale": "pos", "band": 1 }, "x": { "scale": "xscale", "field": "Total" }, "x2": { "scale": "xscale", "value": 0 } } } }, { "type": "text", "from": { "data": "bars" }, "encode": { "enter": { "x": { "field": "x2", "offset": -5 }, "y": { "field": "y", "offset": { "field": "height", "mult": 0.5 } }, "fill": { "value": "white" }, "align": { "value": "right" }, "baseline": { "value": "middle" } } } } ] } ] } }, { "name": "carbon-emission-by-china", "title": "Carbon emission by China (Mainland)", "resources": [ { "name": "fossil-fuel-co2-emissions-by-nation", "transform": [ { "type": "filter", "expression": "data['Country'] == 'CHINA (MAINLAND)'" } ] } ], "specType": "simple", "spec": { "type": "line", "group": "Year", "series": ["Total"], "yTitle": "million metric tons of C" } }, { "name": "carbon-emission-by-usa", "title": "Carbon emission by USA", "resources": [ { "name": "fossil-fuel-co2-emissions-by-nation", "transform": [ { "type": "filter", "expression": "data['Country'] == 'UNITED STATES OF AMERICA'" } ] } ], "specType": "simple", "spec": { "type": "line", "group": "Year", "series": ["Total"], "yTitle": "million metric tons of C" } }, { "name": "carbon-emission-per-capita-2014", "title": "Carbon emission per capita in 2014 (>2.0). Values are kg of C.", "resources": [ { "name": "fossil-fuel-co2-emissions-by-nation", "transform": [ { "type": "filter", "expression": "data['Year'] == 2014" }, { "type": "filter", "expression": "data['Per Capita'] > 2.0" } ] } ], "specType": "vega", "spec": { "title": "Carbon emission per capita in 2014 (>2.0). Values are kg of C.", "$schema": "https://vega.github.io/schema/vega/v4.json", "width": 700, "height": 700, "padding": 5, "data": [ { "name": "fossil-fuel-co2-emissions-by-nation" } ], "scales": [ { "name": "yscale", "type": "band", "domain": { "data": "fossil-fuel-co2-emissions-by-nation", "field": "Country", "sort": {"field": "Per Capita", "op": "max"} }, "range": "height", "padding": 0.01 }, { "name": "xscale", "type": "linear", "domain": { "data": "fossil-fuel-co2-emissions-by-nation", "field": "Per Capita" }, "range": "width", "round": true, "zero": true, "nice": true } ], "axes": [ { "orient": "left", "scale": "yscale", "tickSize": 0, "labelPadding": 4, "zindex": 1 }, { "orient": "bottom", "scale": "xscale" } ], "marks": [ { "type": "group", "from": { "facet": { "data": "fossil-fuel-co2-emissions-by-nation", "name": "facet", "groupby": "Country" } }, "encode": { "enter": { "y": { "scale": "yscale", "field": "Country" } } }, "signals": [ { "name": "height", "update": "bandwidth('yscale')" } ], "scales": [ { "name": "pos", "type": "band", "range": "height", "domain": { "data": "facet", "field": "position" } } ], "marks": [ { "name": "bars", "from": { "data": "facet" }, "type": "rect", "encode": { "enter": { "y": { "scale": "pos", "field": "position" }, "height": { "scale": "pos", "band": 1 }, "x": { "scale": "xscale", "field": "Per Capita" }, "x2": { "scale": "xscale", "value": 0 } } } }, { "type": "text", "from": { "data": "bars" }, "encode": { "enter": { "x": { "field": "x2", "offset": -5 }, "y": { "field": "y", "offset": { "field": "height", "mult": 0.5 } }, "fill": { "value": "white" }, "align": { "value": "right" }, "baseline": { "value": "middle" } } } } ] } ] } } ] }