Skip to content

Commit 745f27c

Browse files
spec: add scatter-size-mapped specification
1 parent fdafa74 commit 745f27c

2 files changed

Lines changed: 50 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# scatter-size-mapped: Bubble Chart
2+
3+
## Description
4+
5+
A bubble chart where marker size represents a third variable. Semi-transparent markers reveal overlapping points and enable comparison of three dimensions simultaneously on a 2D plane.
6+
7+
## Applications
8+
9+
- **Economic analysis**: Comparing countries by GDP, population, and area
10+
- **Business metrics**: Visualizing market segments by revenue, growth, and market share
11+
- **Scientific data**: Showing measurements with intensity or magnitude values
12+
- **Social sciences**: Displaying demographic data across multiple variables
13+
14+
## Data
15+
16+
Generate synthetic data representing country economic indicators:
17+
- 30-50 data points representing different entities
18+
- X-axis: GDP per capita (continuous, 1,000-80,000 range)
19+
- Y-axis: Life expectancy (continuous, 50-85 range)
20+
- Bubble size: Population (log scale recommended for better visibility)
21+
- Optional: Category for coloring by region/continent
22+
23+
Example structure:
24+
```
25+
country | gdp_per_capita | life_expectancy | population | region
26+
USA | 63000 | 78.5 | 330000000 | Americas
27+
Germany | 51000 | 81.2 | 83000000 | Europe
28+
Japan | 42000 | 84.3 | 126000000 | Asia
29+
```
30+
31+
## Notes
32+
33+
- Use semi-transparent markers (alpha 0.5-0.7) to reveal overlapping bubbles
34+
- Scale bubble sizes appropriately - largest should not overwhelm the plot
35+
- Consider log scaling for size variable if data spans multiple orders of magnitude
36+
- Include size legend showing what bubble sizes represent
37+
- Add axis labels with units
38+
- Use colormap if including category dimension
39+
- Consider adding annotations for notable data points
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
spec_id: scatter-size-mapped
2+
title: Bubble Chart
3+
created: 2025-12-27T19:20:00Z
4+
updated: 2025-12-27T19:20:00Z
5+
issue: 2375
6+
suggested: null
7+
tags:
8+
plot_type: [scatter, bubble, size-mapped]
9+
domain: [economics, business, general]
10+
features: [multivariate, 2d, size-encoding]
11+
data_type: [numeric, continuous]

0 commit comments

Comments
 (0)