Skip to content
Vega-Lite templates

Chemistry — Chart: Period 3 Melting Points

Melting points of the period-3 elements.

Template previewVega-Lite
Rendering…

Make it your own.

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "Melting points across period 3",
  "data": {"values": [
    {"element": "Na", "mp": 98},
    {"element": "Mg", "mp": 650},
    {"element": "Al", "mp": 660},
    {"element": "Si", "mp": 1414},
    {"element": "P", "mp": 44},
    {"element": "S", "mp": 115},
    {"element": "Cl", "mp": -101},
    {"element": "Ar", "mp": -189}
  ]},
  "mark": "bar",
  "encoding": {
    "x": {"field": "element", "type": "nominal", "sort": null, "title": "Element"},
    "y": {"field": "mp", "type": "quantitative", "title": "melting point (C)"},
    "color": {"field": "mp", "type": "quantitative", "scale": {"scheme": "viridis"}}
  }
}