Skip to content
Vega-Lite templates

Chemistry — Chart: Salt Solubilities

Solubility of common salts at 25 C.

Template previewVega-Lite
Rendering…

Make it your own.

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "Solubility of salts (g per 100 g water)",
  "data": {"values": [
    {"salt": "NaCl", "g": 36},
    {"salt": "KNO3", "g": 38},
    {"salt": "KCl", "g": 34},
    {"salt": "CuSO4", "g": 22},
    {"salt": "CaCO3", "g": 0.001},
    {"salt": "AgCl", "g": 0.0002}
  ]},
  "mark": "bar",
  "encoding": {
    "x": {"field": "salt", "type": "nominal", "sort": "-y", "title": "Salt"},
    "y": {"field": "g", "type": "quantitative", "scale": {"type": "symlog"}, "title": "solubility (g/100 g)"},
    "color": {"field": "salt", "type": "nominal", "legend": null}
  }
}