Skip to content
Vega-Lite templates

Physics — Chart: EM Spectrum Wavelengths

Approximate wavelengths of the EM bands (log scale).

Template previewVega-Lite
Rendering…

Make it your own.

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "Typical wavelength of each EM band",
  "data": {"values": [
    {"band": "Radio", "wavelength": 1000},
    {"band": "Microwave", "wavelength": 0.01},
    {"band": "Infrared", "wavelength": 0.00001},
    {"band": "Visible", "wavelength": 0.0000005},
    {"band": "UV", "wavelength": 0.00000001},
    {"band": "X-ray", "wavelength": 0.000000001},
    {"band": "Gamma", "wavelength": 0.000000000001}
  ]},
  "mark": "bar",
  "encoding": {
    "x": {"field": "band", "type": "nominal", "sort": null, "title": "Band"},
    "y": {"field": "wavelength", "type": "quantitative", "scale": {"type": "log"}, "title": "wavelength (m, log)"},
    "color": {"field": "band", "type": "nominal", "legend": null}
  }
}