# Parliament

> Use a parliament chart to show seats in a chamber: one dot per seat in a hemicycle, coloured by party, with the majority line marked.

- Data type: Shares of a total (`parts`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`parts`)
- Example: **Labour won 63% of the seats in 2024 with 34% of the votes** (UK House of Commons, general election of 4 July 2024, 650 seats)
- How to read it: Each dot is one MP's seat; the dashed line marks a majority. Switch to see the seats each party would hold if seats followed votes.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9 (best 16:9)

## Use it when
- seats in an elected body
- whether a party or coalition passes the majority line is the point
- a few hundred units that people recognise as a chamber

## Avoid it when
- the parts are not seats (use a waffle or bars)
- dozens of parties (fold into Others)
- the total is small (fewer than about 30 seats)

## Fields (data.json)
- `party` (category): the party, with small parties folded into Others
- `seats` (number, unit "seats", format count): seats won
- `votes` (number, unit "votes", format count): votes won
- `members` (text): who is inside Others
- `votesCast` (number, unit "votes", format count): all votes cast, for vote shares

Units are the example's: with your own data, set each number field's `unit` and `format` (percent, count, decimal, currency, compact) in the meta you pass to mount, or `chartreuse render --unit field=text --format field=count`. Scales and labels follow your data.

## Interactions, motion, sound
- hover or tap a seat to read its party's seats and vote share
- the buttons switch between seats won and seats in proportion to votes
- Motion: Seats fill the chamber from left to right like members filing in; switching modes ripples the new colours across the benches.
- Sound: A whoosh on the switch. Quiet while it draws and between steps; mute it from its card. (sound is off until the viewer turns it on)

## Example spec
```json
{
  "chart": "parliament",
  "title": "Labour won 63% of the seats in 2024 with 34% of the votes",
  "subtitle": "UK House of Commons, general election of 4 July 2024, 650 seats",
  "data": "/charts/parliament.data.json"
}
```

## Source
2024 United Kingdom general election, summary of seats returned, Wikipedia (House of Commons Library results) (CC BY-SA 4.0), retrieved 2026-12-01: https://en.wikipedia.org/wiki/2024_United_Kingdom_general_election

Note: Seats if seats followed votes are a simple national proportional share of the 650 seats (largest remainder), not a forecast of any real system. Others includes the Speaker and parties that won no seats.

Live: /charts/parliament · Manifest: /charts/parliament.json · Tags: parliament, hemicycle, election, seats, politics, uk, majority, part to whole
