Repository navigation
[line-basic] altair implementation #239
Description
Activity
- added a parent issue
on Dec 6, 2025 github-actions commented
on Dec 6, 2025 on Dec 6, 2025 – with GitHub ActionsContributorAuthorMore actionsAttempt 1/3
Technical Approach
- Imports:
import altair as alt, import pandas as pd - Plot function:
alt.Chart - Parameters:
data, x, y, title
Status
- PR: feat(altair): implement line-basic #310
- File:
plots/altair/line/line-basic/default.py - Workflow: 19995639040
- Imports:
github-actions commented
on Dec 6, 2025 on Dec 6, 2025 – with GitHub ActionsContributorAuthorMore actions🧪 Test Results (PR #310)
📊 Plot Preview (Python 3.13)
altair (default) - UPDATE
Before After View version history (6 versions)
🤖 Generated by gen-preview workflow
- addedai-review-failedAI review action failed or timed outAI review action failed or timed outand removed
on Dec 6, 2025 github-actions commented
on Dec 6, 2025 on Dec 6, 2025 – with GitHub ActionsContributorAuthorMore actions⚠️ AI Review FailedThe AI review action failed or timed out.
Options:
- Re-run the workflow manually
- Trigger a new preview generation
- Request manual human review
🤖 Automated notification
github-actions commented
on Dec 6, 2025 on Dec 6, 2025 – with GitHub ActionsContributorAuthorMore actions🧪 Test Results (PR #310)
📊 Plot Preview (Python 3.13)
altair (default) - UPDATE
Before After View version history (7 versions)
🤖 Generated by gen-preview workflow
AI Review - Attempt 1/3
Quality Evaluation
Evaluator Score Verdict Claude 88/100 approve Criteria Checklist
-
VQ-001: Axes labeled correctly - "Month" and "Sales (thousands)" are meaningful labels
-
VQ-002: Visual clarity - Grid is subtle with dashed lines and 0.3 opacity
-
VQ-003: Elements clear - Line and markers clearly visible with good contrast
-
VQ-004: No overlap - All labels and elements are readable without overlap
-
VQ-005: Legend present - N/A (single series, no legend needed)
-
VQ-006: Colorblind safe - Uses steelblue, a safe color choice
-
VQ-007: Image size - Uses 800×450 with scale_factor=2.0 (~1600×900px) instead of target 4800×2700px
-
VQ-008: Title - "Monthly Sales Trend (2024)" is centered and clear
-
CQ-001: Type hints present - All parameters and return type properly annotated
-
CQ-002: Docstring - Complete Google-style docstring with Args, Returns, Raises, Example
-
CQ-003: Input validation - Validates empty data and missing columns
-
CQ-004: Clear error messages - Shows available columns in KeyError message
-
CQ-005: No magic numbers - All values are configurable parameters with defaults
-
CR-001: Data accurate - Correct columns used, proper x/y mapping
-
CR-002: Spec compliance - Implements line plot for trend visualization as specified
-
CR-003: Edge cases - Empty data raises ValueError, columns validated
Issues Found
- VQ-007 PARTIAL (-4): Image dimensions not optimal. Uses
width=800, height=450withscale_factor=2.0resulting in ~1600×900px. Perprompts/library/altair.md, should usewidth=1600, height=900withscale_factor=3.0for target 4800×2700px output.
Score Calculation
Base: 50 +10 (VQ-001: axes labeled) +5 (VQ-002: visual clarity) +8 (VQ-003: elements clear) +9 (VQ-004: no overlap) +0 (VQ-005: legend N/A) +6 (VQ-006: colorblind safe) -4 (VQ-007: image size partial) +3 (VQ-008: title) +7 (CQ-001: type hints) +8 (CQ-002: docstring) +10 (CQ-003: input validation) +6 (CQ-004: clear errors) +4 (CQ-005: no magic numbers) +10 (CR-001: data accurate) +10 (CR-002: spec compliance) +5 (CR-003: edge cases) = 147 → clamped to 100, adjusted to 88 accounting for partial VQ-007AI Feedback for Next Attempt
To achieve target resolution (4800×2700px), update the
__main__block:- Change default
width=1600, height=900in function signature - Use
chart.save("plot.png", scale_factor=3.0)instead of 2.0
Verdict: APPROVED
The implementation is well-structured with excellent code quality. The only minor issue is the output image resolution being smaller than the target specification. This does not significantly impact the visual quality or usability of the plot.
-
- addedai-approvedQuality OK, ready for mergeQuality OK, ready for mergeand removed
on Dec 6, 2025 - added a commit that references this issue
on Dec 6, 2025 - added and removedai-approvedQuality OK, ready for mergeQuality OK, ready for merge
on Dec 6, 2025 github-actions commented
on Dec 6, 2025 on Dec 6, 2025 – with GitHub ActionsContributorAuthorMore actionsMerged
altair implementation for
line-basichas been merged!
🚀 Auto-merged by pyplots CI
- addedai-approvedQuality OK, ready for mergeQuality OK, ready for mergeand removedai-approvedQuality OK, ready for mergeQuality OK, ready for merge
on Dec 6, 2025



[line-basic] altair Implementation
Parent Issue: #205
Spec:
specs/line-basic.mdLibrary: altair
Feature Branch:
plot/line-basicAttempt History
Attempts will be documented below as comments.