Skip to content
Vega-Lite templates

Chemistry — Chart: Rate by Condition

Relative reaction rate under different conditions.

Template previewVega-Lite
Rendering…

Make it your own.

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "Relative reaction rate by condition",
  "data": {"values": [
    {"condition": "Control", "rate": 1.0},
    {"condition": "+10 C", "rate": 2.0},
    {"condition": "Double conc.", "rate": 2.0},
    {"condition": "Powdered", "rate": 3.0},
    {"condition": "Catalyst", "rate": 4.0}
  ]},
  "mark": "bar",
  "encoding": {
    "x": {"field": "condition", "type": "nominal", "title": "Condition"},
    "y": {"field": "rate", "type": "quantitative", "title": "relative rate"},
    "color": {"field": "condition", "type": "nominal", "legend": null}
  }
}