Skip to content
Vega-Lite templates

Chemistry — Chart: Successive Ionisation Energies

Big jumps reveal electron shells (log scale).

Template previewVega-Lite
Rendering…

Make it your own.

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "Successive ionisation energies of magnesium",
  "data": {"values": [
    {"n": 1, "IE": 738},
    {"n": 2, "IE": 1450},
    {"n": 3, "IE": 7733},
    {"n": 4, "IE": 10540},
    {"n": 5, "IE": 13630},
    {"n": 6, "IE": 18020}
  ]},
  "mark": {"type": "line", "point": true},
  "encoding": {
    "x": {"field": "n", "type": "ordinal", "title": "electron removed"},
    "y": {"field": "IE", "type": "quantitative", "scale": {"type": "log"}, "title": "IE (kJ/mol, log)"}
  }
}