{
  "id": "ad-curve",
  "name": "Aggregate demand (AD) curve",
  "unit": "macro",
  "unitName": "Unit 3 · Macroeconomics",
  "topic": "AD/AS model",
  "hl": false,
  "description": "AD slopes downward. A change in the average price level is a movement along AD; a change in C, I, G or (X − M) shifts the whole curve.",
  "keywords": [
    "aggregate demand",
    "AD",
    "C + I + G + (X − M)",
    "wealth effect",
    "interest rate effect",
    "trade effect",
    "shift",
    "movement along"
  ],
  "schemaUrl": "https://graphs.lectere.com/api/v1/templates/ad-curve",
  "previewUrl": "https://graphs.lectere.com/thumbs/ad-curve.svg",
  "editorUrl": "https://graphs.lectere.com/graph/ad-curve/",
  "params": [
    {
      "key": "mode",
      "label": "Show",
      "default": "inc",
      "type": "enum",
      "options": [
        {
          "value": "move",
          "label": "Movement along AD (price level change)"
        },
        {
          "value": "inc",
          "label": "Increase in AD (shift right)"
        },
        {
          "value": "dec",
          "label": "Decrease in AD (shift left)"
        }
      ]
    },
    {
      "key": "shift",
      "label": "Shift size",
      "default": 2,
      "group": "Shape",
      "type": "number",
      "min": 0.5,
      "max": 3.5,
      "step": 0.1
    }
  ],
  "defaults": {
    "mode": "inc",
    "shift": 2
  },
  "panels": [
    {
      "id": "main",
      "title": null,
      "xLabel": "Real GDP",
      "yLabel": "Average price level",
      "xRange": [
        0,
        10
      ],
      "yRange": [
        0,
        10
      ],
      "axisKeys": {
        "x": "main:x",
        "y": "main:y"
      }
    }
  ],
  "labels": [
    {
      "key": "main:y",
      "default": "Average price level",
      "hint": "Vertical axis",
      "panel": "main"
    },
    {
      "key": "main:x",
      "default": "Real GDP",
      "hint": "Horizontal axis",
      "panel": "main"
    },
    {
      "key": "main.ad1",
      "default": "AD_1",
      "hint": "Curve",
      "panel": "main"
    },
    {
      "key": "main.ad2",
      "default": "AD_2",
      "hint": "Curve",
      "panel": "main"
    },
    {
      "key": "main.y1:y",
      "default": "PL",
      "hint": "Vertical-axis value",
      "panel": "main"
    },
    {
      "key": "main.y1:x",
      "default": "Y_1",
      "hint": "Horizontal-axis value",
      "panel": "main"
    },
    {
      "key": "main.y2:x",
      "default": "Y_2",
      "hint": "Horizontal-axis value",
      "panel": "main"
    }
  ],
  "elements": [
    {
      "key": "main.ad1",
      "kind": "curve",
      "label": "AD_1"
    },
    {
      "key": "main.ad2",
      "kind": "curve",
      "label": "AD_2"
    },
    {
      "key": "main.shift",
      "kind": "line"
    },
    {
      "key": "main.y1",
      "kind": "point"
    },
    {
      "key": "main.y2",
      "kind": "point"
    }
  ],
  "stats": null,
  "example": {
    "template": "ad-curve",
    "params": {
      "mode": "inc",
      "shift": 2
    }
  }
}