{
  "id": "market-equilibrium",
  "name": "Market equilibrium",
  "unit": "micro",
  "unitName": "Unit 2 · Microeconomics",
  "topic": "Demand & supply",
  "hl": false,
  "description": "Demand and supply intersect at the market-clearing price and quantity.",
  "keywords": [
    "equilibrium",
    "market clearing",
    "price mechanism",
    "demand and supply"
  ],
  "schemaUrl": "https://graphs.lectere.com/api/v1/templates/market-equilibrium",
  "previewUrl": "https://graphs.lectere.com/thumbs/market-equilibrium.svg",
  "editorUrl": "https://graphs.lectere.com/graph/market-equilibrium/",
  "params": [
    {
      "key": "pointLabel",
      "label": "Label equilibrium point (E)",
      "default": false,
      "type": "boolean"
    },
    {
      "key": "dSlope",
      "label": "Demand steepness",
      "default": 0.8,
      "group": "Shape",
      "type": "number",
      "min": 0.3,
      "max": 2.5,
      "step": 0.05
    },
    {
      "key": "sSlope",
      "label": "Supply steepness",
      "default": 0.8,
      "group": "Shape",
      "type": "number",
      "min": 0.3,
      "max": 2.5,
      "step": 0.05
    },
    {
      "key": "dPos",
      "label": "Demand position",
      "default": 0,
      "group": "Shape",
      "type": "number",
      "min": -3,
      "max": 3,
      "step": 0.1
    },
    {
      "key": "sPos",
      "label": "Supply position",
      "default": 0,
      "group": "Shape",
      "type": "number",
      "min": -3,
      "max": 3,
      "step": 0.1
    }
  ],
  "defaults": {
    "pointLabel": false,
    "dSlope": 0.8,
    "sSlope": 0.8,
    "dPos": 0,
    "sPos": 0
  },
  "panels": [
    {
      "id": "main",
      "title": null,
      "xLabel": "Quantity",
      "yLabel": "Price",
      "xRange": [
        0,
        10
      ],
      "yRange": [
        0,
        10
      ],
      "axisKeys": {
        "x": "main:x",
        "y": "main:y"
      }
    }
  ],
  "labels": [
    {
      "key": "main:y",
      "default": "Price",
      "hint": "Vertical axis",
      "panel": "main"
    },
    {
      "key": "main:x",
      "default": "Quantity",
      "hint": "Horizontal axis",
      "panel": "main"
    },
    {
      "key": "main.d",
      "default": "D",
      "hint": "Curve",
      "panel": "main"
    },
    {
      "key": "main.s",
      "default": "S",
      "hint": "Curve",
      "panel": "main"
    },
    {
      "key": "main.e:y",
      "default": "P_e",
      "hint": "Vertical-axis value",
      "panel": "main"
    },
    {
      "key": "main.e:x",
      "default": "Q_e",
      "hint": "Horizontal-axis value",
      "panel": "main"
    }
  ],
  "elements": [
    {
      "key": "main.d",
      "kind": "curve",
      "label": "D"
    },
    {
      "key": "main.s",
      "kind": "curve",
      "label": "S"
    },
    {
      "key": "main.e",
      "kind": "point"
    }
  ],
  "stats": null,
  "example": {
    "template": "market-equilibrium",
    "params": {
      "pointLabel": false,
      "dSlope": 0.8,
      "sSlope": 0.8,
      "dPos": 0,
      "sPos": 0
    }
  }
}