Skip to content

Commit 760bb71

Browse files
feat: add 5 new plot specifications
- line-filled: Filled Line Plot - bar-categorical: Categorical Count Bar Chart - histogram-stepwise: Step Histogram - violin-box: Violin Plot with Embedded Box Plot - area-stacked-percent: 100% Stacked Area Chart 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f29e2ca commit 760bb71

10 files changed

Lines changed: 234 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# area-stacked-percent: 100% Stacked Area Chart
2+
3+
## Description
4+
5+
A stacked area chart normalized to 100%, where each area represents the percentage contribution of a category to the total. The combined height always equals 100%, showing proportional changes over time.
6+
7+
## Applications
8+
9+
- Market share evolution over time
10+
- Portfolio composition changes
11+
- Budget allocation trends
12+
- Demographic proportion shifts
13+
14+
## Data
15+
16+
The visualization requires:
17+
- **X variable**: Continuous variable (typically time)
18+
- **Multiple Y variables**: Categories to stack (values normalized to percentages)
19+
20+
Example structure:
21+
```
22+
Time | Category A | Category B | Category C
23+
-----|------------|------------|------------
24+
2020 | 40 | 35 | 25
25+
2021 | 45 | 30 | 25
26+
2022 | 50 | 28 | 22
27+
...
28+
```
29+
30+
## Notes
31+
32+
- Total always equals 100%
33+
- Shows relative proportions, not absolute values
34+
- Good for composition changes over time
35+
- Each area width shows percentage contribution
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
spec_id: area-stacked-percent
2+
title: 100% Stacked Area Chart
3+
created: '2025-12-30T11:00:00Z'
4+
updated: '2025-12-30T11:00:00Z'
5+
issue: 2647
6+
suggested: claude-code
7+
tags:
8+
plot_type: [area, stacked, percentage]
9+
domain: [business, finance]
10+
features: [normalized, composition, time-series]
11+
data_type: [numeric, continuous]
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# bar-categorical: Categorical Count Bar Chart
2+
3+
## Description
4+
5+
A bar chart that automatically counts the frequency of each category in a dataset. Unlike basic bar charts that plot pre-computed values, this chart takes raw categorical data and computes the counts.
6+
7+
## Applications
8+
9+
- Frequency distribution of categorical variables
10+
- Survey response tallying
11+
- Event occurrence counts by type
12+
- Category popularity analysis
13+
14+
## Data
15+
16+
The visualization requires:
17+
- **Categorical variable**: Raw category values (counts computed automatically)
18+
19+
Example structure:
20+
```
21+
Category
22+
--------
23+
A
24+
B
25+
A
26+
C
27+
A
28+
B
29+
...
30+
```
31+
32+
## Notes
33+
34+
- Y-axis shows count/frequency
35+
- Categories displayed on x-axis
36+
- Can optionally sort by count (descending)
37+
- Similar to histogram but for categorical data
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
spec_id: bar-categorical
2+
title: Categorical Count Bar Chart
3+
created: '2025-12-30T11:00:00Z'
4+
updated: '2025-12-30T11:00:00Z'
5+
issue: 2644
6+
suggested: claude-code
7+
tags:
8+
plot_type: [bar, count]
9+
domain: [statistics, general]
10+
features: [frequency, categorical]
11+
data_type: [categorical]
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# histogram-stepwise: Step Histogram
2+
3+
## Description
4+
5+
A histogram displayed as step lines (outline only) without filled bars. The distribution is shown as connected horizontal and vertical line segments, creating a step function appearance.
6+
7+
## Applications
8+
9+
- Comparing multiple distributions without visual overlap
10+
- Clean, minimal histogram visualization
11+
- Overlaying distributions for direct comparison
12+
- Print-friendly histogram representation
13+
14+
## Data
15+
16+
The visualization requires:
17+
- **Continuous variable**: Values to bin and count
18+
19+
Example structure:
20+
```
21+
Value
22+
------
23+
12.5
24+
18.3
25+
15.7
26+
22.1
27+
...
28+
```
29+
30+
## Notes
31+
32+
- No fill, only outline (step lines)
33+
- Each bin represented by horizontal segment at count level
34+
- Vertical segments connect adjacent bins
35+
- Ideal for overlaying multiple distributions
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
spec_id: histogram-stepwise
2+
title: Step Histogram
3+
created: '2025-12-30T11:00:00Z'
4+
updated: '2025-12-30T11:00:00Z'
5+
issue: 2645
6+
suggested: claude-code
7+
tags:
8+
plot_type: [histogram, distribution]
9+
domain: [statistics]
10+
features: [step, outline, unfilled]
11+
data_type: [numeric, continuous]

plots/line-filled/specification.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# line-filled: Filled Line Plot
2+
3+
## Description
4+
5+
A line plot with the area between the line and the baseline (typically x-axis) filled with a semi-transparent color. This creates an area chart effect for a single series, emphasizing the magnitude of values.
6+
7+
## Applications
8+
9+
- Emphasizing magnitude of values over time
10+
- Volume or quantity visualization
11+
- Single series with area emphasis
12+
- Stock price or metric trends
13+
14+
## Data
15+
16+
The visualization requires:
17+
- **X variable**: Continuous variable (often time)
18+
- **Y variable**: Single numeric variable
19+
20+
Example structure:
21+
```
22+
X | Value
23+
-----|-------
24+
0 | 10
25+
1 | 15
26+
2 | 12
27+
3 | 18
28+
...
29+
```
30+
31+
## Notes
32+
33+
- Fill should be semi-transparent (alpha ~0.3-0.5)
34+
- Line should be visible on top of the fill
35+
- Fill color typically matches line color
36+
- Baseline is usually y=0
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
spec_id: line-filled
2+
title: Filled Line Plot
3+
created: '2025-12-30T11:00:00Z'
4+
updated: '2025-12-30T11:00:00Z'
5+
issue: 2643
6+
suggested: claude-code
7+
tags:
8+
plot_type: [line, area]
9+
domain: [general, finance]
10+
features: [filled, single-series]
11+
data_type: [numeric, continuous]

plots/violin-box/specification.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# violin-box: Violin Plot with Embedded Box Plot
2+
3+
## Description
4+
5+
A violin plot with an embedded box plot inside, combining the distribution shape visualization (KDE) with traditional quartile statistics. Shows both the probability density and summary statistics in one plot.
6+
7+
## Applications
8+
9+
- Complete distribution visualization
10+
- Combining density estimate with summary statistics
11+
- Detailed group comparisons
12+
- Statistical presentations requiring both views
13+
14+
## Data
15+
16+
The visualization requires:
17+
- **Numeric variable**: Values to show distribution
18+
- **Categorical variable**: Groups to compare
19+
20+
Example structure:
21+
```
22+
Value | Group
23+
------|-------
24+
45.2 | A
25+
52.1 | A
26+
38.7 | B
27+
41.3 | B
28+
...
29+
```
30+
31+
## Notes
32+
33+
- Box plot centered inside violin
34+
- Shows median, quartiles (box), and whiskers
35+
- KDE (violin) shape visible around the box
36+
- Outliers can be shown as points
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
spec_id: violin-box
2+
title: Violin Plot with Embedded Box Plot
3+
created: '2025-12-30T11:00:00Z'
4+
updated: '2025-12-30T11:00:00Z'
5+
issue: 2646
6+
suggested: claude-code
7+
tags:
8+
plot_type: [violin, box, distribution]
9+
domain: [statistics]
10+
features: [combined, kde, quartiles]
11+
data_type: [numeric, categorical]

0 commit comments

Comments
 (0)