Skip to content
Vega-Lite templates

Chemistry — Chart: Isotopic Abundance

Natural abundance of selected isotopes.

Template previewVega-Lite
Rendering…

Make it your own.

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "Isotopic abundance",
  "data": {"values": [
    {"isotope": "C-12", "abundance": 98.9},
    {"isotope": "C-13", "abundance": 1.1},
    {"isotope": "Cl-35", "abundance": 75.8},
    {"isotope": "Cl-37", "abundance": 24.2},
    {"isotope": "Br-79", "abundance": 50.7},
    {"isotope": "Br-81", "abundance": 49.3}
  ]},
  "mark": "bar",
  "encoding": {
    "x": {"field": "isotope", "type": "nominal", "sort": null, "title": "Isotope"},
    "y": {"field": "abundance", "type": "quantitative", "title": "% abundance"},
    "color": {"field": "isotope", "type": "nominal", "legend": null}
  }
}