{
  "id": "demand-shift",
  "name": "Shift in demand",
  "unit": "micro",
  "unitName": "Unit 2 · Microeconomics",
  "topic": "Demand & supply",
  "hl": false,
  "description": "An increase or decrease in demand caused by a non-price determinant, shifting the whole curve.",
  "keywords": [
    "increase in demand",
    "decrease in demand",
    "determinants",
    "income",
    "tastes",
    "shift"
  ],
  "schemaUrl": "https://graphs.lectere.com/api/v1/templates/demand-shift",
  "previewUrl": "https://graphs.lectere.com/thumbs/demand-shift.svg",
  "editorUrl": "https://graphs.lectere.com/graph/demand-shift/",
  "params": [
    {
      "key": "dir",
      "label": "Change",
      "default": "inc",
      "type": "enum",
      "options": [
        {
          "value": "inc",
          "label": "Increase (shift right)"
        },
        {
          "value": "dec",
          "label": "Decrease (shift left)"
        }
      ]
    },
    {
      "key": "guides",
      "label": "Show quantity change at a given price",
      "default": true,
      "type": "boolean"
    },
    {
      "key": "shift",
      "label": "Shift size",
      "default": 2,
      "group": "Shape",
      "type": "number",
      "min": 0.5,
      "max": 3.5,
      "step": 0.1
    },
    {
      "key": "dSlope",
      "label": "Demand steepness",
      "default": 0.8,
      "group": "Shape",
      "type": "number",
      "min": 0.3,
      "max": 2.5,
      "step": 0.05
    }
  ],
  "defaults": {
    "dir": "inc",
    "guides": true,
    "shift": 2,
    "dSlope": 0.8
  },
  "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.d1",
      "default": "D_1",
      "hint": "Curve",
      "panel": "main"
    },
    {
      "key": "main.d2",
      "default": "D_2",
      "hint": "Curve",
      "panel": "main"
    },
    {
      "key": "main.q1:y",
      "default": "P",
      "hint": "Vertical-axis value",
      "panel": "main"
    },
    {
      "key": "main.q1:x",
      "default": "Q_1",
      "hint": "Horizontal-axis value",
      "panel": "main"
    },
    {
      "key": "main.q2:x",
      "default": "Q_2",
      "hint": "Horizontal-axis value",
      "panel": "main"
    }
  ],
  "elements": [
    {
      "key": "main.d1",
      "kind": "curve",
      "label": "D_1"
    },
    {
      "key": "main.d2",
      "kind": "curve",
      "label": "D_2"
    },
    {
      "key": "main.shift",
      "kind": "line"
    },
    {
      "key": "main.q1",
      "kind": "point"
    },
    {
      "key": "main.q2",
      "kind": "point"
    }
  ],
  "stats": null,
  "example": {
    "template": "demand-shift",
    "params": {
      "dir": "inc",
      "guides": true,
      "shift": 2,
      "dSlope": 0.8
    }
  }
}