{
  "id": "tariff",
  "name": "Tariff",
  "unit": "global",
  "unitName": "Unit 4 · The global economy",
  "topic": "Trade protection",
  "hl": false,
  "description": "A tariff raises the domestic price from P_w to P_w + t. Domestic production rises, consumption falls, imports shrink, the government collects revenue and two welfare-loss triangles appear.",
  "keywords": [
    "tariff",
    "import tax",
    "protectionism",
    "tariff revenue",
    "welfare loss",
    "deadweight loss",
    "trade protection"
  ],
  "schemaUrl": "https://graphs.lectere.com/api/v1/templates/tariff",
  "previewUrl": "https://graphs.lectere.com/thumbs/tariff.svg",
  "editorUrl": "https://graphs.lectere.com/graph/tariff/",
  "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": "domestic",
      "label": "Show domestic equilibrium",
      "default": false,
      "type": "boolean"
    },
    {
      "key": "pw",
      "label": "World price",
      "default": 2.6,
      "group": "Shape",
      "type": "number",
      "min": 1.5,
      "max": 4.5,
      "step": 0.05
    },
    {
      "key": "tariff",
      "label": "Tariff 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,
    "domestic": false,
    "pw": 2.6,
    "tariff": 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.wc",
      "default": "Tariff\nrevenue",
      "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.sw",
      "default": "S_w",
      "hint": "Curve",
      "panel": "main"
    },
    {
      "key": "main.swt",
      "default": "S_w + tariff",
      "hint": "Curve",
      "panel": "main"
    },
    {
      "key": "main.pw",
      "default": "P_w",
      "hint": "Axis mark",
      "panel": "main"
    },
    {
      "key": "main.pt",
      "default": "P_w + t",
      "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": "PS gain"
    },
    {
      "key": "main.wb",
      "kind": "area",
      "label": "DWL"
    },
    {
      "key": "main.wc",
      "kind": "area",
      "label": "Tariff\nrevenue"
    },
    {
      "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.sw",
      "kind": "curve",
      "label": "S_w"
    },
    {
      "key": "main.swt",
      "kind": "curve",
      "label": "S_w + tariff"
    },
    {
      "key": "main.pw",
      "kind": "tick",
      "label": "P_w"
    },
    {
      "key": "main.pt",
      "kind": "tick",
      "label": "P_w + t"
    },
    {
      "key": "main.q1",
      "kind": "point"
    },
    {
      "key": "main.q2",
      "kind": "point"
    },
    {
      "key": "main.q3",
      "kind": "point"
    },
    {
      "key": "main.q4",
      "kind": "point"
    }
  ],
  "stats": null,
  "example": {
    "template": "tariff",
    "params": {
      "areas": true,
      "lettering": "words",
      "imports": false,
      "domestic": false,
      "pw": 2.6,
      "tariff": 1.3,
      "dSlope": 0.8,
      "sSlope": 0.8
    }
  }
}