{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "line_chart",
  "description": "Çizgi grafik; eksen etiketleri eşit aralıkla yayılır.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "version",
    "points"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "line_chart"
      ]
    },
    "version": {
      "type": "integer",
      "enum": [
        1
      ]
    },
    "tone": {
      "type": "string",
      "enum": [
        "neutral",
        "success",
        "warning",
        "danger",
        "brand"
      ]
    },
    "brand_color": {
      "type": "string",
      "enum": [
        "mavi",
        "turuncu",
        "mor",
        "pembe",
        "altin",
        "yesil",
        "turkuaz"
      ]
    },
    "title": {
      "type": "string",
      "maxLength": 80
    },
    "current": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "amount": {
          "type": "number",
          "minimum": 0,
          "maximum": 1000000000
        },
        "currency": {
          "type": "string",
          "enum": [
            "TRY",
            "INK",
            "USD",
            "EUR"
          ]
        }
      },
      "required": [
        "amount",
        "currency"
      ],
      "description": "tutar; biçimlendirmeyi (₺, ondalık ayracı) istemci yapar"
    },
    "change_percent": {
      "type": "number",
      "minimum": -100000,
      "maximum": 100000
    },
    "points": {
      "type": "array",
      "minItems": 2,
      "maxItems": 366,
      "items": {
        "type": "number",
        "minimum": -1000000000000.0,
        "maximum": 1000000000000.0
      }
    },
    "x_labels": {
      "type": "array",
      "minItems": 0,
      "maxItems": 12,
      "items": {
        "type": "string",
        "maxLength": 8
      }
    }
  }
}
