{
  "id": "price-floor",
  "name": "Price floor (minimum price)",
  "unit": "micro",
  "unitName": "Unit 2 · Microeconomics",
  "topic": "Government intervention",
  "hl": false,
  "description": "A minimum price set above equilibrium creates a surplus (excess supply); the government may buy the surplus, at a cost to taxpayers.",
  "keywords": [
    "price floor",
    "minimum price",
    "price support",
    "agriculture",
    "surplus",
    "excess supply",
    "government purchase",
    "welfare loss"
  ],
  "schemaUrl": "https://graphs.lectere.com/api/v1/templates/price-floor",
  "previewUrl": "https://graphs.lectere.com/thumbs/price-floor.svg",
  "editorUrl": "https://graphs.lectere.com/graph/price-floor/",
  "params": [
    {
      "key": "pmin",
      "label": "Minimum price",
      "default": 6.6,
      "group": "Policy",
      "type": "number",
      "min": 5.4,
      "max": 8.6,
      "step": 0.1
    },
    {
      "key": "surplus",
      "label": "Mark the surplus",
      "default": true,
      "type": "boolean"
    },
    {
      "key": "buy",
      "label": "Government buys the surplus",
      "default": false,
      "type": "boolean"
    },
    {
      "key": "dwl",
      "label": "Shade welfare loss",
      "default": true,
      "type": "boolean"
    },
    {
      "key": "welfare",
      "label": "Shade consumer and producer surplus after the floor",
      "default": false,
      "type": "boolean"
    },
    {
      "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": {
    "pmin": 6.6,
    "surplus": true,
    "buy": false,
    "dwl": true,
    "welfare": false,
    "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.dwl",
      "default": "WL",
      "hint": "Shaded area",
      "panel": "main"
    },
    {
      "key": "main.d",
      "default": "D",
      "hint": "Curve",
      "panel": "main"
    },
    {
      "key": "main.s",
      "default": "S",
      "hint": "Curve",
      "panel": "main"
    },
    {
      "key": "main.floor",
      "default": "Price floor",
      "hint": "Curve",
      "panel": "main"
    },
    {
      "key": "main.pmin",
      "default": "P_{min}",
      "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.qd:x",
      "default": "Q_d",
      "hint": "Horizontal-axis value",
      "panel": "main"
    },
    {
      "key": "main.qs:x",
      "default": "Q_s",
      "hint": "Horizontal-axis value",
      "panel": "main"
    },
    {
      "key": "main.surplus",
      "default": "surplus",
      "hint": "Arrow / line",
      "panel": "main"
    }
  ],
  "elements": [
    {
      "key": "main.dwl",
      "kind": "area",
      "label": "WL"
    },
    {
      "key": "main.d",
      "kind": "curve",
      "label": "D"
    },
    {
      "key": "main.s",
      "kind": "curve",
      "label": "S"
    },
    {
      "key": "main.floor",
      "kind": "curve",
      "label": "Price floor"
    },
    {
      "key": "main.pmin",
      "kind": "tick",
      "label": "P_{min}"
    },
    {
      "key": "main.e",
      "kind": "point"
    },
    {
      "key": "main.qd",
      "kind": "point"
    },
    {
      "key": "main.qs",
      "kind": "point"
    },
    {
      "key": "main.surplus",
      "kind": "line",
      "label": "surplus"
    }
  ],
  "stats": null,
  "example": {
    "template": "price-floor",
    "params": {
      "pmin": 6.6,
      "surplus": true,
      "buy": false,
      "dwl": true,
      "welfare": false,
      "dSlope": 0.8,
      "sSlope": 0.8
    }
  }
}