{
  "id": "free-trade-exporting",
  "name": "Free trade: exporting country",
  "unit": "global",
  "unitName": "Unit 4 · The global economy",
  "topic": "International trade",
  "hl": false,
  "description": "When the world price is above the domestic equilibrium price, domestic producers sell more and the surplus is exported. Producers gain more than consumers lose.",
  "keywords": [
    "free trade",
    "exports",
    "world price",
    "gains from trade",
    "producer surplus"
  ],
  "schemaUrl": "https://graphs.lectere.com/api/v1/templates/free-trade-exporting",
  "previewUrl": "https://graphs.lectere.com/thumbs/free-trade-exporting.svg",
  "editorUrl": "https://graphs.lectere.com/graph/free-trade-exporting/",
  "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": "exports",
      "label": "Show exports",
      "default": true,
      "type": "boolean"
    },
    {
      "key": "pw",
      "label": "World price",
      "default": 6.6,
      "group": "Shape",
      "type": "number",
      "min": 5.4,
      "max": 8.4,
      "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",
    "exports": true,
    "pw": 6.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\nproducers",
      "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.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.exp",
      "default": "exports",
      "hint": "Arrow / line",
      "panel": "main"
    }
  ],
  "elements": [
    {
      "key": "main.wa",
      "kind": "area",
      "label": "Transfer to\nproducers"
    },
    {
      "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"
    },
    {
      "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.exp",
      "kind": "line",
      "label": "exports"
    }
  ],
  "stats": null,
  "example": {
    "template": "free-trade-exporting",
    "params": {
      "shade": "gains",
      "lettering": "words",
      "exports": true,
      "pw": 6.6,
      "dSlope": 0.8,
      "sSlope": 0.8
    }
  }
}