{
  "version": "xarts.unit-allocation/1",
  "family": "unit-allocation",
  "provenance": {
    "legacyId": "unitchart"
  },
  "document": {
    "header": {
      "title": "Reparto de unidades · simulación",
      "subtitle": "Datos generados para demostrar la gramática del gráfico",
      "source": "Ejemplo sintético · sin datos de clientes"
    },
    "footer": {
      "source": "Ejemplo sintético generado para la biblioteca",
      "notes": "Valores y entidades ficticios. No representan clientes, planes ni resultados reales."
    },
    "spacing": {
      "horizontalPadding": 24,
      "topPadding": 22,
      "bottomPadding": 16,
      "minimumTextGap": 4
    }
  },
  "output": {
    "filename": "unitchart",
    "embedSpec": true,
    "geometryDecimals": 2
  },
  "presentation": {
    "theme": "anlak",
    "dimensions": {
      "width": 1100,
      "height": 240
    },
    "locale": "es-ES",
    "fonts": "reference",
    "surface": "theme",
    "framePadding": 24
  },
  "annotations": [],
  "data": {
    "kind": "collective-units",
    "unit": "count",
    "rows": [
      {
        "id": "category-1",
        "label": "Categoría 1",
        "count": 24
      },
      {
        "id": "category-2",
        "label": "Categoría 2",
        "count": 36
      },
      {
        "id": "category-3",
        "label": "Categoría 3",
        "count": 60
      }
    ]
  },
  "encoding": {
    "id": "id",
    "label": "label",
    "count": "count"
  },
  "allocation": {
    "mode": "exact-count",
    "unitValue": 1,
    "rounding": "reject"
  },
  "layout": {
    "view": "category-rows",
    "margin": {
      "top": 24,
      "right": 40,
      "bottom": 24,
      "left": 190
    },
    "columns": 10,
    "fillOrder": "top-left",
    "cellGap": 4,
    "bandPadding": 0.3,
    "labelGap": 12,
    "countGap": 8,
    "titleHeight": 0,
    "legendHeight": 0,
    "hemicycle": {
      "rows": 5,
      "innerRadius": 0.25,
      "outerRadius": 0.92,
      "centerX": 0.5,
      "centerY": 1,
      "rowAllocation": "nearest-reverse-correction",
      "minMarkRadius": 1
    }
  },
  "marks": {
    "shape": "square",
    "colors": [
      "#1f5a3d",
      "#9c1f1a",
      "#6a6458"
    ],
    "radius": 5,
    "cornerRadius": 2,
    "opacity": 0.9,
    "hoverScale": 1,
    "hiddenColor": "borderLight",
    "hiddenOpacity": 0.3
  },
  "labels": {
    "title": "",
    "titleStyle": {
      "fontSize": 14,
      "fontWeight": 600,
      "color": "textPrimary"
    },
    "row": {
      "fontSize": 12,
      "fontWeight": 500,
      "color": "textPrimary"
    },
    "count": {
      "fontSize": 11,
      "fontWeight": 400,
      "color": "textMuted"
    },
    "total": {
      "fontSize": 18,
      "fontWeight": 700,
      "color": "textPrimary"
    },
    "totalSubtitle": {
      "fontSize": 11,
      "fontWeight": 400,
      "color": "textMuted"
    },
    "totalSubtitleText": "seats",
    "totalOffset": -8,
    "subtitleOffset": 8
  },
  "legend": {
    "exportMeasurement": "shaped",
    "mode": "none",
    "shape": "circle",
    "value": "count",
    "itemWidth": 140,
    "offsetY": 8,
    "symbolRadius": 5,
    "labelOffsetX": 14,
    "labelOffsetY": 9,
    "style": {
      "fontSize": 11,
      "fontWeight": 500,
      "color": "textSecondary"
    }
  }
}
