Skip to content
Vega-Lite templates

Chemistry — Chart: Recycling Rates

Approximate recycling rates by material.

Template previewVega-Lite
Rendering…

Make it your own.

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "Recycling rate by material",
  "data": {"values": [
    {"material": "Aluminium", "rate": 75},
    {"material": "Paper", "rate": 68},
    {"material": "Glass", "rate": 60},
    {"material": "Steel", "rate": 70},
    {"material": "Plastic", "rate": 30}
  ]},
  "mark": "bar",
  "encoding": {
    "x": {"field": "material", "type": "nominal", "sort": "-y", "title": "Material"},
    "y": {"field": "rate", "type": "quantitative", "title": "recycling rate (%)"},
    "color": {"field": "material", "type": "nominal", "legend": null}
  }
}