{
  "id": "ped-types",
  "name": "Price elasticity of demand: types",
  "unit": "micro",
  "unitName": "Unit 2 · Microeconomics",
  "topic": "Elasticity",
  "hl": false,
  "description": "Demand curves for perfectly elastic, perfectly inelastic, unit elastic (rectangular hyperbola), relatively elastic and relatively inelastic demand.",
  "keywords": [
    "PED",
    "price elasticity of demand",
    "perfectly elastic",
    "perfectly inelastic",
    "unit elastic",
    "rectangular hyperbola",
    "elastic",
    "inelastic"
  ],
  "schemaUrl": "https://graphs.lectere.com/api/v1/templates/ped-types",
  "previewUrl": "https://graphs.lectere.com/thumbs/ped-types.svg",
  "editorUrl": "https://graphs.lectere.com/graph/ped-types/",
  "params": [
    {
      "key": "type",
      "label": "Type",
      "default": "elastic",
      "type": "enum",
      "options": [
        {
          "value": "pe",
          "label": "Perfectly elastic (PED = ∞)"
        },
        {
          "value": "pi",
          "label": "Perfectly inelastic (PED = 0)"
        },
        {
          "value": "unit",
          "label": "Unit elastic (PED = 1)"
        },
        {
          "value": "elastic",
          "label": "Relatively elastic (PED > 1)"
        },
        {
          "value": "inelastic",
          "label": "Relatively inelastic (PED < 1)"
        }
      ]
    },
    {
      "key": "change",
      "label": "Show a price change",
      "default": true,
      "type": "boolean"
    },
    {
      "key": "revenue",
      "label": "Show revenue lost and gained",
      "default": false,
      "type": "boolean"
    },
    {
      "key": "value",
      "label": "Write the PED value on the curve",
      "default": true,
      "type": "boolean"
    }
  ],
  "defaults": {
    "type": "elastic",
    "change": true,
    "revenue": false,
    "value": true
  },
  "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.d",
      "default": "D (PED > 1)",
      "hint": "Curve",
      "panel": "main"
    },
    {
      "key": "main.a:y",
      "default": "P_1",
      "hint": "Vertical-axis value",
      "panel": "main"
    },
    {
      "key": "main.a:x",
      "default": "Q_1",
      "hint": "Horizontal-axis value",
      "panel": "main"
    },
    {
      "key": "main.b:y",
      "default": "P_2",
      "hint": "Vertical-axis value",
      "panel": "main"
    },
    {
      "key": "main.b:x",
      "default": "Q_2",
      "hint": "Horizontal-axis value",
      "panel": "main"
    }
  ],
  "elements": [
    {
      "key": "main.d",
      "kind": "curve",
      "label": "D (PED > 1)"
    },
    {
      "key": "main.a",
      "kind": "point"
    },
    {
      "key": "main.b",
      "kind": "point"
    }
  ],
  "stats": null,
  "example": {
    "template": "ped-types",
    "params": {
      "type": "elastic",
      "change": true,
      "revenue": false,
      "value": true
    }
  }
}