Skip to content
Vega-Lite templates

Earth Science — Chart: Global Warming Potential

100-year GWP of greenhouse gases (log scale).

Template previewVega-Lite
Rendering…

Make it your own.

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "100-year global warming potential",
  "data": {"values": [
    {"gas": "CO2", "gwp": 1},
    {"gas": "Methane", "gwp": 28},
    {"gas": "Nitrous oxide", "gwp": 265},
    {"gas": "HFC-134a", "gwp": 1300},
    {"gas": "SF6", "gwp": 23500}
  ]},
  "mark": "bar",
  "encoding": {
    "y": {"field": "gas", "type": "nominal", "sort": "-x", "title": "Gas"},
    "x": {"field": "gwp", "type": "quantitative", "scale": {"type": "log"}, "title": "GWP (log)"},
    "color": {"field": "gas", "type": "nominal", "legend": null}
  }
}