{
  "version": "xarts.unit-allocation/1",
  "family": "unit-allocation",
  "provenance": {
    "legacyId": "parliament"
  },
  "document": {
    "header": {
      "title": "Parliament Seat Composition",
      "subtitle": "Seats by party"
    },
    "footer": {
      "source": "xarts · demo data",
      "notes": "Illustrative data to explore the chart and replace with your own."
    },
    "spacing": {
      "horizontalPadding": 24,
      "topPadding": 22,
      "bottomPadding": 24,
      "minimumTextGap": 6
    }
  },
  "output": {
    "filename": "parliament",
    "embedSpec": true,
    "geometryDecimals": 2
  },
  "presentation": {
    "theme": "anlak",
    "dimensions": {
      "width": 800,
      "height": 429
    },
    "locale": "en-US",
    "fonts": "reference",
    "surface": "theme",
    "framePadding": 24
  },
  "annotations": [],
  "data": {
    "kind": "collective-units",
    "unit": "seats",
    "rows": [
      {
        "id": "category-1",
        "label": "Progressive Alliance",
        "count": 35
      },
      {
        "id": "category-2",
        "label": "Centre Democrats",
        "count": 25
      },
      {
        "id": "category-3",
        "label": "Green Coalition",
        "count": 18
      },
      {
        "id": "category-4",
        "label": "Liberal Union",
        "count": 14
      },
      {
        "id": "category-5",
        "label": "National Front",
        "count": 8
      }
    ]
  },
  "encoding": {
    "id": "id",
    "label": "label",
    "count": "count"
  },
  "allocation": {
    "mode": "exact-count",
    "unitValue": 1,
    "rounding": "reject"
  },
  "layout": {
    "view": "hemicycle",
    "margin": {
      "top": 16,
      "right": 16,
      "bottom": 44,
      "left": 16
    },
    "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": "circle",
    "colors": [
      "blue",
      "teal",
      "emerald",
      "amber",
      "red"
    ],
    "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": 13
  },
  "legend": {
    "exportMeasurement": "glyph-advances",
    "mode": "bottom",
    "shape": "circle",
    "value": "count",
    "itemWidth": 140,
    "offsetY": 8,
    "symbolRadius": 5,
    "labelOffsetX": 14,
    "labelOffsetY": 9,
    "style": {
      "fontSize": 11,
      "fontWeight": 500,
      "color": "textSecondary"
    }
  }
}
