Skip to content

Commit 723ba9a

Browse files
spec: add bar-error specification (#2380)
## New Specification: `bar-error` Related to #2376 --- ### specification.md # bar-error: Bar Chart with Error Bars ## Description A bar chart with error bars displays categorical data as rectangular bars with vertical (or horizontal) lines extending from each bar to indicate uncertainty or variability. Error bars typically represent standard deviation, standard error, confidence intervals, or min/max ranges. This visualization is essential for comparing group means while communicating the reliability and precision of each measurement. ## Applications - Scientific experiments comparing treatment groups with measurement uncertainty - Survey results displaying response means with confidence intervals - A/B test results showing conversion rates with statistical bounds - Comparing group means with standard deviations across categories ## Data - `category` (categorical) - Names or labels for each bar - `value` (numeric) - Central value for each bar (mean, median, or measured value) - `error` (numeric) - Error magnitude for symmetric error bars, or pair for asymmetric errors (lower, upper) - Size: 3-12 categories for optimal readability ## Notes - Error bars should have visible caps (horizontal lines at ends) to clearly mark the error range - Include a legend or annotation explaining what the error bars represent (e.g., "±1 SD", "95% CI") - Consider horizontal orientation when category labels are long or numerous - Use consistent bar widths and error bar styling across all categories - Asymmetric error bars may be needed for skewed distributions or percentage data --- **Next:** Add `approved` label to the issue to merge this PR. --- :robot: *[spec-create workflow](https://github.com/MarkusNeusinger/pyplots/actions/runs/20543220836)* Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent c79315a commit 723ba9a

2 files changed

Lines changed: 56 additions & 0 deletions

File tree

plots/bar-error/specification.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# bar-error: Bar Chart with Error Bars
2+
3+
## Description
4+
5+
A bar chart with error bars displays categorical data as rectangular bars with vertical (or horizontal) lines extending from each bar to indicate uncertainty or variability. Error bars typically represent standard deviation, standard error, confidence intervals, or min/max ranges. This visualization is essential for comparing group means while communicating the reliability and precision of each measurement.
6+
7+
## Applications
8+
9+
- Scientific experiments comparing treatment groups with measurement uncertainty
10+
- Survey results displaying response means with confidence intervals
11+
- A/B test results showing conversion rates with statistical bounds
12+
- Comparing group means with standard deviations across categories
13+
14+
## Data
15+
16+
- `category` (categorical) - Names or labels for each bar
17+
- `value` (numeric) - Central value for each bar (mean, median, or measured value)
18+
- `error` (numeric) - Error magnitude for symmetric error bars, or pair for asymmetric errors (lower, upper)
19+
- Size: 3-12 categories for optimal readability
20+
21+
## Notes
22+
23+
- Error bars should have visible caps (horizontal lines at ends) to clearly mark the error range
24+
- Include a legend or annotation explaining what the error bars represent (e.g., "±1 SD", "95% CI")
25+
- Consider horizontal orientation when category labels are long or numerous
26+
- Use consistent bar widths and error bar styling across all categories
27+
- Asymmetric error bars may be needed for skewed distributions or percentage data

plots/bar-error/specification.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Specification-level metadata for bar-error
2+
# Auto-synced to PostgreSQL on push to main
3+
4+
spec_id: bar-error
5+
title: Bar Chart with Error Bars
6+
7+
# Specification tracking
8+
created: 2025-12-27T19:12:59Z
9+
updated: null
10+
issue: 2376
11+
suggested: MarkusNeusinger
12+
13+
# Classification tags (applies to all library implementations)
14+
# See docs/concepts/tagging-system.md for detailed guidelines
15+
tags:
16+
plot_type:
17+
- bar
18+
- errorbar
19+
data_type:
20+
- categorical
21+
- numeric
22+
domain:
23+
- general
24+
- statistics
25+
- science
26+
features:
27+
- error-bars
28+
- comparison
29+
- uncertainty

0 commit comments

Comments
 (0)