Skip to content
Vega-Lite templates

Biology — Chart: Enzyme Activity vs pH

Optimum-pH curves for two enzymes.

Template previewVega-Lite
Rendering…

Make it your own.

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "Enzyme activity vs pH",
  "data": {"values": [
    {"pH": 1, "activity": 5, "enzyme": "Pepsin"},
    {"pH": 2, "activity": 95, "enzyme": "Pepsin"},
    {"pH": 3, "activity": 60, "enzyme": "Pepsin"},
    {"pH": 5, "activity": 10, "enzyme": "Pepsin"},
    {"pH": 5, "activity": 20, "enzyme": "Trypsin"},
    {"pH": 7, "activity": 70, "enzyme": "Trypsin"},
    {"pH": 8, "activity": 100, "enzyme": "Trypsin"},
    {"pH": 10, "activity": 40, "enzyme": "Trypsin"}
  ]},
  "mark": {"type": "line", "point": true},
  "encoding": {
    "x": {"field": "pH", "type": "quantitative", "title": "pH"},
    "y": {"field": "activity", "type": "quantitative", "title": "relative activity"},
    "color": {"field": "enzyme", "type": "nominal", "title": "Enzyme"}
  }
}