{
  "id": "j-curve",
  "name": "J-curve",
  "unit": "global",
  "unitName": "Unit 4 · The global economy",
  "topic": "Balance of payments",
  "hl": true,
  "description": "After a depreciation the current account first worsens, because import and export volumes respond slowly (demand is price-inelastic in the short run), then improves once the Marshall–Lerner condition holds.",
  "keywords": [
    "J-curve",
    "depreciation",
    "devaluation",
    "current account",
    "Marshall-Lerner",
    "balance of payments",
    "time lag"
  ],
  "schemaUrl": "https://graphs.lectere.com/api/v1/templates/j-curve",
  "previewUrl": "https://graphs.lectere.com/thumbs/j-curve.svg",
  "editorUrl": "https://graphs.lectere.com/graph/j-curve/",
  "params": [
    {
      "key": "phases",
      "label": "Label short-run and long-run phases",
      "default": true,
      "type": "boolean"
    },
    {
      "key": "ml",
      "label": "Add Marshall–Lerner note",
      "default": false,
      "type": "boolean"
    },
    {
      "key": "event",
      "label": "Event at t₀",
      "default": "Depreciation",
      "type": "string"
    },
    {
      "key": "initial",
      "label": "Initial current account deficit",
      "default": 1.2,
      "group": "Shape",
      "type": "number",
      "min": 0,
      "max": 2.5,
      "step": 0.1
    },
    {
      "key": "depth",
      "label": "Short-run worsening",
      "default": 1.8,
      "group": "Shape",
      "type": "number",
      "min": 0.5,
      "max": 2.5,
      "step": 0.1
    },
    {
      "key": "t0",
      "label": "Time of depreciation",
      "default": 2,
      "group": "Shape",
      "type": "number",
      "min": 1,
      "max": 4,
      "step": 0.1
    }
  ],
  "defaults": {
    "phases": true,
    "ml": false,
    "event": "Depreciation",
    "initial": 1.2,
    "depth": 1.8,
    "t0": 2
  },
  "panels": [
    {
      "id": "main",
      "title": null,
      "xLabel": "Time",
      "yLabel": "Current account balance",
      "xRange": [
        0,
        10
      ],
      "yRange": [
        -5,
        5
      ],
      "axisKeys": {
        "x": "main:x",
        "y": "main:y"
      }
    }
  ],
  "labels": [
    {
      "key": "main:y",
      "default": "Current account balance",
      "hint": "Vertical axis",
      "panel": "main"
    },
    {
      "key": "main:x",
      "default": "Time",
      "hint": "Horizontal axis",
      "panel": "main"
    },
    {
      "key": "main.j",
      "default": "J-curve",
      "hint": "Curve",
      "panel": "main"
    },
    {
      "key": "main.t0:x",
      "default": "t_0",
      "hint": "Horizontal-axis value",
      "panel": "main"
    },
    {
      "key": "main.event",
      "default": "Depreciation",
      "hint": "Text",
      "panel": "main"
    },
    {
      "key": "main.surplus",
      "default": "Surplus (+)",
      "hint": "Text",
      "panel": "main"
    },
    {
      "key": "main.deficit",
      "default": "Deficit (−)",
      "hint": "Text",
      "panel": "main"
    },
    {
      "key": "main.sr",
      "default": "deficit worsens\n(short run)",
      "hint": "Text",
      "panel": "main"
    },
    {
      "key": "main.lr",
      "default": "current account\nimproves (long run)",
      "hint": "Text",
      "panel": "main"
    }
  ],
  "elements": [
    {
      "key": "main.j",
      "kind": "curve",
      "label": "J-curve"
    },
    {
      "key": "main.t0",
      "kind": "point"
    },
    {
      "key": "main.event",
      "kind": "text",
      "label": "Depreciation"
    },
    {
      "key": "main.eventArrow",
      "kind": "line"
    },
    {
      "key": "main.surplus",
      "kind": "text",
      "label": "Surplus (+)"
    },
    {
      "key": "main.deficit",
      "kind": "text",
      "label": "Deficit (−)"
    },
    {
      "key": "main.sr",
      "kind": "text",
      "label": "deficit worsens\n(short run)"
    },
    {
      "key": "main.lr",
      "kind": "text",
      "label": "current account\nimproves (long run)"
    },
    {
      "key": "main.cross",
      "kind": "point"
    }
  ],
  "stats": null,
  "example": {
    "template": "j-curve",
    "params": {
      "phases": true,
      "ml": false,
      "event": "Depreciation",
      "initial": 1.2,
      "depth": 1.8,
      "t0": 2
    }
  }
}