|
| 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 |
0 commit comments