Skip to content

Commit a8f4b36

Browse files
feat(altair): implement line-basic (#1352)
## Implementation: `line-basic` - altair Implements the **altair** version of `line-basic`. **File:** `plots/line-basic/implementations/altair.py` --- :robot: *[impl-generate workflow](https://github.com/MarkusNeusinger/pyplots/actions/runs/20447578895)* --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent d2cb99b commit a8f4b36

2 files changed

Lines changed: 18 additions & 10 deletions

File tree

plots/line-basic/implementations/altair.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
""" pyplots.ai
22
line-basic: Basic Line Plot
33
Library: altair 6.0.0 | Python 3.13.11
4-
Quality: 93/100 | Created: 2025-12-13
4+
Quality: 91/100 | Created: 2025-12-23
55
"""
66

77
import altair as alt
@@ -32,7 +32,7 @@
3232
# Add points to enhance visibility
3333
points = alt.Chart(df).mark_point(size=200, color="#306998", filled=True).encode(x="Month:T", y="Temperature:Q")
3434

35-
# Combine line and points
35+
# Combine line and points with subtle grid
3636
final_chart = (chart + points).configure_axis(gridColor="#E0E0E0", gridOpacity=0.3).configure_view(strokeWidth=0)
3737

3838
# Save
Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
library: altair
22
specification_id: line-basic
3-
created: 2025-12-13 23:40:11+00:00
4-
updated: 2025-12-13 23:40:11+00:00
3+
created: '2025-12-23T00:24:33Z'
4+
updated: '2025-12-23T00:28:20Z'
55
generated_by: claude-opus-4-5-20251101
6-
workflow_run: 20199516689
7-
issue: 653
6+
workflow_run: 20447578895
7+
issue: 0
88
python_version: 3.13.11
99
library_version: 6.0.0
1010
preview_url: https://storage.googleapis.com/pyplots-images/plots/line-basic/altair/plot.png
1111
preview_thumb: https://storage.googleapis.com/pyplots-images/plots/line-basic/altair/plot_thumb.png
1212
preview_html: https://storage.googleapis.com/pyplots-images/plots/line-basic/altair/plot.html
13-
quality_score: 93
13+
quality_score: 91
1414
review:
15-
strengths: []
16-
weaknesses: []
17-
improvements: []
15+
strengths:
16+
- Excellent visual clarity with properly sized text elements and line/point visibility
17+
- Perfect spec compliance with correct title format and all required features
18+
- Realistic, comprehensible data scenario (monthly temperature with seasonal pattern)
19+
- Clean KISS code structure following project guidelines
20+
- Good use of layered chart (line + points) for enhanced visibility
21+
- Proper temporal encoding (:T) for datetime data
22+
weaknesses:
23+
- Missing Altair distinctive interactive features (tooltips, .interactive() for
24+
zoom/pan) that showcase the library strengths
25+
- Grid lines are too subtle (gridOpacity=0.3) making them barely visible

0 commit comments

Comments
 (0)