{
  "id": "export-subsidy",
  "name": "Export subsidy",
  "unit": "global",
  "unitName": "Unit 4 · The global economy",
  "topic": "Trade protection",
  "hl": true,
  "description": "A per-unit subsidy on exports means producers will only sell at home for P_w + s, so the domestic price rises. Production and exports increase, domestic consumption falls, and the government pays the subsidy on every unit exported.",
  "keywords": [
    "export subsidy",
    "exports",
    "protectionism",
    "welfare loss",
    "government cost",
    "dumping"
  ],
  "schemaUrl": "https://graphs.lectere.com/api/v1/templates/export-subsidy",
  "previewUrl": "https://graphs.lectere.com/thumbs/export-subsidy.svg",
  "editorUrl": "https://graphs.lectere.com/graph/export-subsidy/",
  "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": "exports",
      "label": "Show exports before and after",
      "default": false,
      "type": "boolean"
    },
    {
      "key": "domestic",
      "label": "Show domestic equilibrium",
      "default": false,
      "type": "boolean"
    },
    {
      "key": "pw",
      "label": "World price",
      "default": 6.2,
      "group": "Shape",
      "type": "number",
      "min": 5.4,
      "max": 7.6,
      "step": 0.05
    },
    {
      "key": "sub",
      "label": "Subsidy per unit exported",
      "default": 1.2,
      "group": "Shape",
      "type": "number",
      "min": 0.3,
      "max": 2,
      "step": 0.05
    },
    {
      "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",
    "exports": false,
    "domestic": false,
    "pw": 6.2,
    "sub": 1.2,
    "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": "Transfer",
      "hint": "Shaded area",
      "panel": "main"
    },
    {
      "key": "main.wb",
      "default": "DWL",
      "hint": "Shaded area",
      "panel": "main"
    },
    {
      "key": "main.wc",
      "default": "Subsidy to\nproducers",
      "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.pw",
      "default": "P_w",
      "hint": "Axis mark",
      "panel": "main"
    },
    {
      "key": "main.pt",
      "default": "P_w + s",
      "hint": "Axis mark",
      "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"
    },
    {
      "key": "main.q4:x",
      "default": "Q_4",
      "hint": "Horizontal-axis value",
      "panel": "main"
    }
  ],
  "elements": [
    {
      "key": "main.wa",
      "kind": "area",
      "label": "Transfer"
    },
    {
      "key": "main.wb",
      "kind": "area",
      "label": "DWL"
    },
    {
      "key": "main.wc",
      "kind": "area",
      "label": "Subsidy to\nproducers"
    },
    {
      "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.pwl",
      "kind": "curve"
    },
    {
      "key": "main.ptl",
      "kind": "curve"
    },
    {
      "key": "main.pw",
      "kind": "tick",
      "label": "P_w"
    },
    {
      "key": "main.pt",
      "kind": "tick",
      "label": "P_w + s"
    },
    {
      "key": "main.q1",
      "kind": "point"
    },
    {
      "key": "main.q2",
      "kind": "point"
    },
    {
      "key": "main.q3",
      "kind": "point"
    },
    {
      "key": "main.q4",
      "kind": "point"
    }
  ],
  "stats": null,
  "example": {
    "template": "export-subsidy",
    "params": {
      "areas": true,
      "lettering": "words",
      "exports": false,
      "domestic": false,
      "pw": 6.2,
      "sub": 1.2,
      "dSlope": 0.8,
      "sSlope": 0.8
    }
  }
}