Skip to content

Commit 40d9b98

Browse files
spec: add parliament-basic specification (#2502)
## New Specification: `parliament-basic` Related to #2499 --- ### specification.md # parliament-basic: Parliament Seat Chart ## Description A semicircular parliament seat chart visualizes political party representation by arranging seats in concentric arcs. Each seat is displayed as an individual dot or segment, colored by party affiliation. This visualization is ideal for showing the composition of legislative bodies, election results, and voting bloc distributions at a glance. ## Applications - Visualizing election results showing party seat distributions in parliament - Displaying committee or board composition by faction or affiliation - Analyzing voting bloc strength and coalition possibilities - Comparing party representation across different legislative periods ## Data - `party` (str) - Name of the political party or group - `seats` (int) - Number of seats held by each party - `color` (str) - Hex color code representing the party - Size: 3-15 parties, total seats typically 50-700 - Example: Election results with party names, seat counts, and official party colors ## Notes - Seats arranged in semicircular arcs from left to right - Individual seats rendered as dots or small segments - Legend should display party names with seat counts - Optional: highlight majority threshold line (e.g., 50%+1 seats) - Color ordering typically follows political spectrum (left to right) --- **Next:** Add `approved` label to the issue to merge this PR. --- :robot: *[spec-create workflow](https://github.com/MarkusNeusinger/pyplots/actions/runs/20585342663)* Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent bc210f1 commit 40d9b98

2 files changed

Lines changed: 57 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# parliament-basic: Parliament Seat Chart
2+
3+
## Description
4+
5+
A semicircular parliament seat chart visualizes political party representation by arranging seats in concentric arcs. Each seat is displayed as an individual dot or segment, colored by party affiliation. This visualization is ideal for showing the composition of legislative bodies, election results, and voting bloc distributions at a glance.
6+
7+
## Applications
8+
9+
- Visualizing election results showing party seat distributions in parliament
10+
- Displaying committee or board composition by faction or affiliation
11+
- Analyzing voting bloc strength and coalition possibilities
12+
- Comparing party representation across different legislative periods
13+
14+
## Data
15+
16+
- `party` (str) - Name of the political party or group
17+
- `seats` (int) - Number of seats held by each party
18+
- `color` (str) - Hex color code representing the party
19+
- Size: 3-15 parties, total seats typically 50-700
20+
- Example: Election results with party names, seat counts, and official party colors
21+
22+
## Notes
23+
24+
- Seats arranged in semicircular arcs from left to right
25+
- Individual seats rendered as dots or small segments
26+
- Legend should display party names with seat counts
27+
- Optional: highlight majority threshold line (e.g., 50%+1 seats)
28+
- Color ordering typically follows political spectrum (left to right)
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Specification-level metadata for parliament-basic
2+
# Auto-synced to PostgreSQL on push to main
3+
4+
spec_id: parliament-basic
5+
title: Parliament Seat Chart
6+
7+
# Specification tracking
8+
created: 2025-12-29T23:55:17Z
9+
updated: null
10+
issue: 2499
11+
suggested: MarkusNeusinger
12+
13+
# Classification tags (applies to all library implementations)
14+
# See docs/concepts/tagging-system.md for detailed guidelines
15+
tags:
16+
plot_type:
17+
- parliament
18+
- radial
19+
- dot
20+
data_type:
21+
- categorical
22+
- discrete
23+
domain:
24+
- general
25+
- politics
26+
features:
27+
- basic
28+
- proportional
29+
- semicircular

0 commit comments

Comments
 (0)