Skip to content

Commit d4106f4

Browse files
spec: add dot-matrix-proportional specification
1 parent 53ee57c commit d4106f4

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# dot-matrix-proportional: Dot Matrix Chart for Proportional Counts
2+
3+
## Description
4+
5+
A dot matrix chart displays proportions using a grid of equally-sized dots where filled or colored dots represent counts out of a total. Each dot corresponds to one unit, making it intuitive to read "X out of N" statistics at a glance. Unlike waffle charts that use percentage-based squares, dot matrix charts emphasize absolute counts with variable grid sizes, excelling at risk communication and survey result visualization.
6+
7+
## Applications
8+
9+
- Showing survey results where 47 out of 100 respondents agreed with a statement
10+
- Visualizing medical risk such as 3 in 1,000 patients experiencing a side effect
11+
- Displaying election or vote breakdowns across candidates or parties
12+
- Communicating proportions in infographics and reports for general audiences
13+
14+
## Data
15+
16+
- `category` (str) - Group name identifying each segment (e.g., "Agreed", "Disagreed", "No opinion")
17+
- `count` (int) - Number of units (dots) for that category
18+
- `total` (int) - Total grid size representing the full population (e.g., 100, 500, 1000)
19+
- Size: 2-5 categories, total between 50 and 1,000 dots
20+
21+
## Notes
22+
23+
- Grid layout should match the total (e.g., 10x10 for 100, 10x50 for 500)
24+
- Each dot represents exactly one unit
25+
- Dots are color-coded by category, filled left-to-right, top-to-bottom
26+
- Include a legend with category labels and their counts
27+
- Use uniform dot size and spacing for accurate visual comparison
28+
- Consider adding count or percentage annotations alongside the legend
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Specification-level metadata for dot-matrix-proportional
2+
# Auto-synced to PostgreSQL on push to main
3+
4+
spec_id: dot-matrix-proportional
5+
title: Dot Matrix Chart for Proportional Counts
6+
7+
# Specification tracking
8+
created: "2026-04-11T20:22:52Z"
9+
updated: null
10+
issue: 5241
11+
suggested: MarkusNeusinger
12+
13+
# Classification tags (applies to all library implementations)
14+
# See docs/reference/tagging-system.md for detailed guidelines
15+
tags:
16+
plot_type:
17+
- point
18+
- heatmap
19+
data_type:
20+
- categorical
21+
- discrete
22+
domain:
23+
- general
24+
- statistics
25+
- healthcare
26+
features:
27+
- proportional
28+
- color-mapped
29+
- comparison

0 commit comments

Comments
 (0)