{
  "id": "production-subsidy-trade",
  "name": "Production subsidy (trade protection)",
  "unit": "global",
  "unitName": "Unit 4 · The global economy",
  "topic": "Trade protection",
  "hl": false,
  "description": "A subsidy to domestic producers shifts domestic supply down by the subsidy. The price stays at P_w, so consumers are unaffected, but domestic output rises, imports fall, and the government pays the subsidy on every unit produced.",
  "keywords": [
    "production subsidy",
    "domestic subsidy",
    "protectionism",
    "imports",
    "welfare loss",
    "government cost"
  ],
  "schemaUrl": "https://graphs.lectere.com/api/v1/templates/production-subsidy-trade",
  "previewUrl": "https://graphs.lectere.com/thumbs/production-subsidy-trade.svg",
  "editorUrl": "https://graphs.lectere.com/graph/production-subsidy-trade/",
  "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": "sub",
      "label": "Subsidy per unit",
      "default": 1.3,
      "group": "Shape",
      "type": "number",
      "min": 0.3,
      "max": 2.5,
      "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",
    "imports": false,
    "pw": 2.6,
    "sub": 1.3,
    "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.d",
      "default": "D_{dom}",
      "hint": "Curve",
      "panel": "main"
    },
    {
      "key": "main.s",
      "default": "S_{dom}",
      "hint": "Curve",
      "panel": "main"
    },
    {
      "key": "main.s2",
      "default": "S_{dom} + subsidy",
      "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.pp:y",
      "default": "P_w + s",
      "hint": "Vertical-axis value",
      "panel": "main"
    },
    {
      "key": "main.pp:x",
      "default": "Q_3",
      "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"
    }
  ],
  "elements": [
    {
      "key": "main.wa",
      "kind": "area",
      "label": "PS gain"
    },
    {
      "key": "main.wb",
      "kind": "area",
      "label": "DWL"
    },
    {
      "key": "main.d",
      "kind": "curve",
      "label": "D_{dom}"
    },
    {
      "key": "main.s",
      "kind": "curve",
      "label": "S_{dom}"
    },
    {
      "key": "main.s2",
      "kind": "curve",
      "label": "S_{dom} + subsidy"
    },
    {
      "key": "main.shift",
      "kind": "line"
    },
    {
      "key": "main.sw",
      "kind": "curve",
      "label": "S_w"
    },
    {
      "key": "main.pw",
      "kind": "tick",
      "label": "P_w"
    },
    {
      "key": "main.pp",
      "kind": "point"
    },
    {
      "key": "main.q3",
      "kind": "point"
    },
    {
      "key": "main.q1",
      "kind": "point"
    },
    {
      "key": "main.q2",
      "kind": "point"
    }
  ],
  "stats": null,
  "example": {
    "template": "production-subsidy-trade",
    "params": {
      "areas": true,
      "lettering": "words",
      "imports": false,
      "pw": 2.6,
      "sub": 1.3,
      "dSlope": 0.8,
      "sSlope": 0.8
    }
  }
}