Skip to content

Commit 5f20d9f

Browse files
spec: add bar-3d-categorical specification (#5267)
## New Specification: `bar-3d-categorical` Related to #5248 --- ### specification.md # bar-3d-categorical: 3D Bar Chart for Categorical Comparison ## Description A three-dimensional bar chart where bars rise from a 2D categorical grid, with height encoding the measured value. Two categorical axes define the grid position on the base plane while the vertical axis shows magnitude. This visualization extends the bar chart family into 3D space, making it effective for comparing values across two categorical dimensions simultaneously. ## Applications - Comparing sales figures across product categories and geographic regions simultaneously - Displaying survey responses across two demographic dimensions (e.g., age group vs education level) - Showing experimental results with two categorical factors in factorial designs - Visualizing frequency tables or cross-tabulations with two grouping variables ## Data - `x_category` (str) - first categorical dimension (e.g., product type, region) - `y_category` (str) - second categorical dimension (e.g., time period, segment) - `value` (float) - bar height representing the measured quantity - Size: 3-10 categories per axis, forming a grid of 9-100 bars ## Notes - Bars should have slight spacing between them for visual clarity and depth perception - Color can encode the value magnitude or a third categorical variable - Viewing angle should be adjustable; a default elevation of ~30 degrees and azimuth of ~45 degrees provides good readability - Grid lines on the base plane help relate bars to their categorical positions - Consider adding value labels on top of bars when the grid is small (under 25 bars) - A color bar or legend should indicate the mapping when color encodes a variable --- **Next:** Add `approved` label to the issue to merge this PR. --- :robot: *[spec-create workflow](https://github.com/MarkusNeusinger/pyplots/actions/runs/24292169215)* Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent d9121c5 commit 5f20d9f

File tree

4 files changed

+55
-0
lines changed

4 files changed

+55
-0
lines changed

plots/bar-3d-categorical/implementations/.gitkeep

Whitespace-only changes.

plots/bar-3d-categorical/metadata/.gitkeep

Whitespace-only changes.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# bar-3d-categorical: 3D Bar Chart for Categorical Comparison
2+
3+
## Description
4+
5+
A three-dimensional bar chart where bars rise from a 2D categorical grid, with height encoding the measured value. Two categorical axes define the grid position on the base plane while the vertical axis shows magnitude. This visualization extends the bar chart family into 3D space, making it effective for comparing values across two categorical dimensions simultaneously.
6+
7+
## Applications
8+
9+
- Comparing sales figures across product categories and geographic regions simultaneously
10+
- Displaying survey responses across two demographic dimensions (e.g., age group vs education level)
11+
- Showing experimental results with two categorical factors in factorial designs
12+
- Visualizing frequency tables or cross-tabulations with two grouping variables
13+
14+
## Data
15+
16+
- `x_category` (str) - first categorical dimension (e.g., product type, region)
17+
- `y_category` (str) - second categorical dimension (e.g., time period, segment)
18+
- `value` (float) - bar height representing the measured quantity
19+
- Size: 3-10 categories per axis, forming a grid of 9-100 bars
20+
21+
## Notes
22+
23+
- Bars should have slight spacing between them for visual clarity and depth perception
24+
- Color can encode the value magnitude or a third categorical variable
25+
- Viewing angle should be adjustable; a default elevation of ~30 degrees and azimuth of ~45 degrees provides good readability
26+
- Grid lines on the base plane help relate bars to their categorical positions
27+
- Consider adding value labels on top of bars when the grid is small (under 25 bars)
28+
- A color bar or legend should indicate the mapping when color encodes a variable
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Specification-level metadata for bar-3d-categorical
2+
# Auto-synced to PostgreSQL on push to main
3+
4+
spec_id: bar-3d-categorical
5+
title: 3D Bar Chart for Categorical Comparison
6+
7+
# Specification tracking
8+
created: "2026-04-11T21:39:09Z"
9+
updated: null
10+
issue: 5248
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+
- bar
18+
data_type:
19+
- categorical
20+
- numeric
21+
domain:
22+
- general
23+
- business
24+
features:
25+
- 3d
26+
- comparison
27+
- color-mapped

0 commit comments

Comments
 (0)