{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/lorenz-curve.json",
 "description": "The data prop of <LorenzCurve> (Chartory chart 077).",
 "type": "object",
 "title": "LorenzCurveData",
 "properties": {
  "mode": {
   "enum": [
    "gains",
    "lorenz"
   ],
   "description": "Which curve this is."
  },
  "k": {
   "type": "number",
   "description": "The curve's shape parameter."
  },
  "mark": {
   "type": "object",
   "title": "LorenzCurveMark",
   "properties": {
    "x": {
     "type": "number",
     "description": "The x value."
    },
    "text": {
     "type": "string",
     "description": "The label as shown."
    }
   },
   "required": [
    "x",
    "text"
   ],
   "description": "A marked point: where and its label."
  },
  "ticks": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "The axis tick labels."
  },
  "xt": {
   "type": "array",
   "items": {
    "type": "array",
    "prefixItems": [
     {
      "type": "number"
     },
     {
      "type": "string"
     }
    ],
    "minItems": 2,
    "maxItems": 2
   },
   "description": "The x axis ticks: [value, label] pairs."
  }
 },
 "required": [
  "mode",
  "k",
  "mark",
  "ticks",
  "xt"
 ]
}
