{
  "id": "import-quota",
  "name": "Import quota",
  "unit": "global",
  "unitName": "Unit 4 · The global economy",
  "topic": "Trade protection",
  "hl": false,
  "description": "A quota limits imports to a fixed quantity, shifting domestic supply to S_dom + quota above the world price. The domestic price rises to P_q; holders of import licences/foreign exporters earn quota rent instead of the government earning revenue.",
  "keywords": [
    "quota",
    "import quota",
    "quota rent",
    "protectionism",
    "welfare loss",
    "trade protection"
  ],
  "schemaUrl": "https://graphs.lectere.com/api/v1/templates/import-quota",
  "previewUrl": "https://graphs.lectere.com/thumbs/import-quota.svg",
  "editorUrl": "https://graphs.lectere.com/graph/import-quota/",
  "params": [
    {
      "key": "areas",
      "label": "Shade welfare effects",
      "default": true,
      "type": "boolean"
    },
    {
      "key": "lettering",
      "label": "Area labels",
      "default": "words",
      "type": "enum",
      "options": [
        {
          "value": "words",
          "label": "Words (e.g. \"Tariff revenue\")"
        },
        {
          "value": "letters",
          "label": "Letters (a, b, c, d) + key"
        }
      ]
    },
    {
      "key": "imports",
      "label": "Show imports before and after",
      "default": false,
      "type": "boolean"
    },
    {
      "key": "pw",
      "label": "World price",
      "default": 2.6,
      "group": "Shape",
      "type": "number",
      "min": 1.5,
      "max": 4.2,
      "step": 0.05
    },
    {
      "key": "quota",
      "label": "Quota size",
      "default": 2.5,
      "group": "Shape",
      "type": "number",
      "min": 0.5,
      "max": 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
    },
    {
      "key": "sSlope",
      "label": "Supply steepness",
      "default": 0.8,
      "group": "Shape",
      "type": "number",
      "min": 0.3,
      "max": 2.5,
      "step": 0.05
    }
  ],
  "defaults": {
    "areas": true,
    "lettering": "words",
    "imports": false,
    "pw": 2.6,
    "quota": 2.5,
    "dSlope": 0.8,
    "sSlope": 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.wa",
      "default": "PS gain",
      "hint": "Shaded area",
      "panel": "main"
    },
    {
      "key": "main.wb",
      "default": "DWL",
      "hint": "Shaded area",
      "panel": "main"
    },
    {
      "key": "main.wc",
      "default": "Quota\nrent",
      "hint": "Shaded area",
      "panel": "main"
    },
    {
      "key": "main.wd",
      "default": "DWL",
      "hint": "Shaded area",
      "panel": "main"
    },
    {
      "key": "main.d",
      "default": "D_{dom}",
      "hint": "Curve",
      "panel": "main"
    },
    {
      "key": "main.s",
      "default": "S_{dom}",
      "hint": "Curve",
      "panel": "main"
    },
    {
      "key": "main.sq",
      "default": "S_{dom} + quota",
      "hint": "Curve",
      "panel": "main"
    },
    {
      "key": "main.sw",
      "default": "S_w",
      "hint": "Curve",
      "panel": "main"
    },
    {
      "key": "main.pw",
      "default": "P_w",
      "hint": "Axis mark",
      "panel": "main"
    },
    {
      "key": "main.pq:y",
      "default": "P_q",
      "hint": "Vertical-axis value",
      "panel": "main"
    },
    {
      "key": "main.pq:x",
      "default": "Q_4",
      "hint": "Horizontal-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"
    },
    {
      "key": "main.q3:x",
      "default": "Q_3",
      "hint": "Horizontal-axis value",
      "panel": "main"
    }
  ],
  "elements": [
    {
      "key": "main.wa",
      "kind": "area",
      "label": "PS gain"
    },
    {
      "key": "main.wb",
      "kind": "area",
      "label": "DWL"
    },
    {
      "key": "main.wc",
      "kind": "area",
      "label": "Quota\nrent"
    },
    {
      "key": "main.wd",
      "kind": "area",
      "label": "DWL"
    },
    {
      "key": "main.d",
      "kind": "curve",
      "label": "D_{dom}"
    },
    {
      "key": "main.s",
      "kind": "curve",
      "label": "S_{dom}"
    },
    {
      "key": "main.sq",
      "kind": "curve",
      "label": "S_{dom} + quota"
    },
    {
      "key": "main.sw",
      "kind": "curve",
      "label": "S_w"
    },
    {
      "key": "main.pw",
      "kind": "tick",
      "label": "P_w"
    },
    {
      "key": "main.pq",
      "kind": "point"
    },
    {
      "key": "main.q1",
      "kind": "point"
    },
    {
      "key": "main.q2",
      "kind": "point"
    },
    {
      "key": "main.q3",
      "kind": "point"
    }
  ],
  "stats": null,
  "example": {
    "template": "import-quota",
    "params": {
      "areas": true,
      "lettering": "words",
      "imports": false,
      "pw": 2.6,
      "quota": 2.5,
      "dSlope": 0.8,
      "sSlope": 0.8
    }
  }
}