Skip to content

Commit 28dffc3

Browse files
spec: add range-interval specification (#3579)
## New Specification: `range-interval` Related to #3577 --- ### specification.md # range-interval: Range Interval Chart ## Description A range interval chart displays min-max ranges or intervals as vertical or horizontal bars/segments for each category, making it ideal for visualizing uncertainty bounds, confidence intervals, or value spreads. Unlike error bars which extend from a central data point, range intervals show the full span between two values as a filled bar or line segment, emphasizing the range itself rather than deviation from a center. This visualization excels at comparing ranges across multiple categories simultaneously. ## Applications - Displaying temperature ranges (daily high/low) across months or locations - Comparing salary ranges by job title or department - Showing confidence intervals for statistical estimates across groups - Visualizing stock price ranges (high/low) over multiple periods ## Data - `category` (categorical) - Labels for each range group - `min_value` (numeric) - Lower bound of the range/interval - `max_value` (numeric) - Upper bound of the range/interval - Size: 5-25 categories for optimal readability - Example: Monthly temperature ranges with minimum and maximum values per month ## Notes - Use horizontal orientation when category labels are long - Sort categories by range size, midpoint, or logical order (e.g., chronological) - Consider adding markers at min/max endpoints for emphasis - Semi-transparent fill or distinct colors help differentiate overlapping ranges - Optional: show midpoint markers or reference lines for context --- **Next:** Add `approved` label to the issue to merge this PR. --- :robot: *[spec-create workflow](https://github.com/MarkusNeusinger/pyplots/actions/runs/20868786275)* Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent c7fb0f6 commit 28dffc3

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# range-interval: Range Interval Chart
2+
3+
## Description
4+
5+
A range interval chart displays min-max ranges or intervals as vertical or horizontal bars/segments for each category, making it ideal for visualizing uncertainty bounds, confidence intervals, or value spreads. Unlike error bars which extend from a central data point, range intervals show the full span between two values as a filled bar or line segment, emphasizing the range itself rather than deviation from a center. This visualization excels at comparing ranges across multiple categories simultaneously.
6+
7+
## Applications
8+
9+
- Displaying temperature ranges (daily high/low) across months or locations
10+
- Comparing salary ranges by job title or department
11+
- Showing confidence intervals for statistical estimates across groups
12+
- Visualizing stock price ranges (high/low) over multiple periods
13+
14+
## Data
15+
16+
- `category` (categorical) - Labels for each range group
17+
- `min_value` (numeric) - Lower bound of the range/interval
18+
- `max_value` (numeric) - Upper bound of the range/interval
19+
- Size: 5-25 categories for optimal readability
20+
- Example: Monthly temperature ranges with minimum and maximum values per month
21+
22+
## Notes
23+
24+
- Use horizontal orientation when category labels are long
25+
- Sort categories by range size, midpoint, or logical order (e.g., chronological)
26+
- Consider adding markers at min/max endpoints for emphasis
27+
- Semi-transparent fill or distinct colors help differentiate overlapping ranges
28+
- Optional: show midpoint markers or reference lines for context
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Specification-level metadata for range-interval
2+
# Auto-synced to PostgreSQL on push to main
3+
4+
spec_id: range-interval
5+
title: Range Interval Chart
6+
7+
# Specification tracking
8+
created: 2026-01-09T23:40:20Z
9+
updated: 2026-01-09T23:40:20Z
10+
issue: 3577
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+
- range
19+
data_type:
20+
- numeric
21+
- categorical
22+
domain:
23+
- general
24+
- statistics
25+
features:
26+
- basic
27+
- comparison
28+
- interval

0 commit comments

Comments
 (0)