{
  "id": "free-trade-importing",
  "name": "Free trade: importing country",
  "unit": "global",
  "unitName": "Unit 4 · The global economy",
  "topic": "International trade",
  "hl": false,
  "description": "When the world price is below the domestic equilibrium price, the country imports the difference between domestic demand and domestic supply. Consumers gain more than producers lose.",
  "keywords": [
    "free trade",
    "imports",
    "world price",
    "gains from trade",
    "consumer surplus",
    "small country"
  ],
  "schemaUrl": "https://graphs.lectere.com/api/v1/templates/free-trade-importing",
  "previewUrl": "https://graphs.lectere.com/thumbs/free-trade-importing.svg",
  "editorUrl": "https://graphs.lectere.com/graph/free-trade-importing/",
  "params": [
    {
      "key": "shade",
      "label": "Shading",
      "default": "gains",
      "type": "enum",
      "options": [
        {
          "value": "gains",
          "label": "Welfare changes from trade"
        },
        {
          "value": "surplus",
          "label": "Consumer and producer surplus"
        },
        {
          "value": "none",
          "label": "None"
        }
      ]
    },
    {
      "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",
      "default": true,
      "type": "boolean"
    },
    {
      "key": "pw",
      "label": "World price",
      "default": 2.6,
      "group": "Shape",
      "type": "number",
      "min": 1.5,
      "max": 4.6,
      "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": {
    "shade": "gains",
    "lettering": "words",
    "imports": true,
    "pw": 2.6,
    "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 to\nconsumers",
      "hint": "Shaded area",
      "panel": "main"
    },
    {
      "key": "main.wb",
      "default": "Net\ngain",
      "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.pw",
      "default": "P_w",
      "hint": "Axis mark",
      "panel": "main"
    },
    {
      "key": "main.e:y",
      "default": "P_e",
      "hint": "Vertical-axis value",
      "panel": "main"
    },
    {
      "key": "main.e:x",
      "default": "Q_e",
      "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.imp1",
      "default": "imports",
      "hint": "Arrow / line",
      "panel": "main"
    }
  ],
  "elements": [
    {
      "key": "main.wa",
      "kind": "area",
      "label": "Transfer to\nconsumers"
    },
    {
      "key": "main.wb",
      "kind": "area",
      "label": "Net\ngain"
    },
    {
      "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.pw",
      "kind": "tick",
      "label": "P_w"
    },
    {
      "key": "main.e",
      "kind": "point"
    },
    {
      "key": "main.q1",
      "kind": "point"
    },
    {
      "key": "main.q2",
      "kind": "point"
    },
    {
      "key": "main.imp1",
      "kind": "line",
      "label": "imports"
    }
  ],
  "stats": null,
  "example": {
    "template": "free-trade-importing",
    "params": {
      "shade": "gains",
      "lettering": "words",
      "imports": true,
      "pw": 2.6,
      "dSlope": 0.8,
      "sSlope": 0.8
    }
  }
}