Skip to content

Commit cc14452

Browse files
feat(pygal): implement line-basic (#1350)
## Implementation: `line-basic` - pygal Implements the **pygal** version of `line-basic`. **File:** `plots/line-basic/implementations/pygal.py` --- :robot: *[impl-generate workflow](https://github.com/MarkusNeusinger/pyplots/actions/runs/20447579672)* --------- 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 7e49e37 commit cc14452

2 files changed

Lines changed: 19 additions & 11 deletions

File tree

plots/line-basic/implementations/pygal.py

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

77
import pygal
88
from pygal.style import Style
99

1010

11-
# Data - Monthly average temperatures
11+
# Data - Monthly average temperatures (°C) for a temperate climate
1212
months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
1313
temperatures = [2.3, 3.5, 7.2, 11.8, 16.4, 19.8, 22.1, 21.5, 17.6, 12.3, 7.1, 3.4]
1414

@@ -31,9 +31,9 @@
3131
chart = pygal.Line(
3232
width=4800,
3333
height=2700,
34-
title="line-basic \u00b7 pygal \u00b7 pyplots.ai",
34+
title="line-basic · pygal · pyplots.ai",
3535
x_title="Month",
36-
y_title="Temperature (\u00b0C)",
36+
y_title="Temperature (°C)",
3737
style=custom_style,
3838
show_dots=True,
3939
dots_size=8,
Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
library: pygal
22
specification_id: line-basic
3-
created: 2025-12-13 23:40:10+00:00
4-
updated: 2025-12-13 23:40:10+00:00
3+
created: '2025-12-23T00:24:03Z'
4+
updated: '2025-12-23T00:28:11Z'
55
generated_by: claude-opus-4-5-20251101
6-
workflow_run: 20199516648
7-
issue: 653
6+
workflow_run: 20447579672
7+
issue: 0
88
python_version: 3.13.11
99
library_version: 3.1.0
1010
preview_url: https://storage.googleapis.com/pyplots-images/plots/line-basic/pygal/plot.png
1111
preview_thumb: https://storage.googleapis.com/pyplots-images/plots/line-basic/pygal/plot_thumb.png
1212
preview_html: https://storage.googleapis.com/pyplots-images/plots/line-basic/pygal/plot.html
1313
quality_score: 92
1414
review:
15-
strengths: []
16-
weaknesses: []
17-
improvements: []
15+
strengths:
16+
- Clean, minimal design that matches spec requirements perfectly
17+
- Excellent use of custom Style for font sizing on large canvas
18+
- Realistic temperature data that clearly demonstrates seasonal trends
19+
- Proper title format following pyplots.ai conventions
20+
- Good color choice with accessible contrast
21+
weaknesses:
22+
- Legend at bottom-left appears small and somewhat disconnected from the chart
23+
- Font sizes in the library rules suggest smaller values (28/18/16) but implementation
24+
uses larger (72/48/42) - while this works for the large canvas, it deviates from
25+
the template

0 commit comments

Comments
 (0)