Commit 723ba9a
authored
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments