Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
Empty file.
29 changes: 29 additions & 0 deletions plots/marimekko-basic/specification.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# marimekko-basic: Basic Marimekko Chart

## Description

A Marimekko chart (also called mekko or mosaic plot) is a stacked bar chart where both the width and height of segments represent data values. This visualization shows two categorical dimensions simultaneously with proportional areas, making it ideal for understanding how parts relate to wholes across categories of different sizes.

## Applications

- Market share analysis across segments of varying market sizes
- Product mix visualization by customer segment or region
- Revenue breakdown by region and product line
- Cross-tabulation data where both dimensions matter equally

## Data

- `x_category` (categorical) - Categories determining bar widths (e.g., market segments, regions)
- `y_category` (categorical) - Categories within each bar for stacking (e.g., products, brands)
- `value` (numeric) - Values determining segment sizes; bar width proportional to column total, segment height proportional to share within column
- Size: 3-7 x-categories, 2-5 y-categories typical for readability
- Example: Market share data with regions as x-categories and product lines as y-categories

## Notes

- Bar widths should be proportional to the total value of each x-category
- Segment heights within each bar show the proportion of each y-category
- Area of each segment represents the actual value (width x height proportion)
- Color coding should distinguish y-categories clearly with a legend
- Consider adding value labels on larger segments for readability
- X-axis can show category names centered under each variable-width bar
30 changes: 30 additions & 0 deletions plots/marimekko-basic/specification.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Specification-level metadata for marimekko-basic
# Auto-synced to PostgreSQL on push to main

spec_id: marimekko-basic
title: Basic Marimekko Chart

# Specification tracking
created: 2025-12-15T20:45:01Z
issue: 1002
suggested: MarkusNeusinger
history: []

# Classification tags (applies to all library implementations)
tags:
plot_type:
- marimekko
- mosaic
- stacked-bar
domain:
- business
- statistics
features:
- basic
- proportional
- 2d
audience:
- intermediate
data_type:
- categorical
- numeric