Skip to content

Commit e57e696

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

2 files changed

Lines changed: 21 additions & 12 deletions

File tree

plots/pie-basic/implementations/pygal.py

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

77
import pygal
@@ -12,7 +12,7 @@
1212
categories = ["Product A", "Product B", "Product C", "Product D", "Product E"]
1313
values = [35, 25, 20, 12, 8]
1414

15-
# Custom style for 4800x2700 px
15+
# Custom style for 3600x3600 px (square format for pie chart)
1616
custom_style = Style(
1717
background="white",
1818
plot_background="white",
@@ -30,8 +30,8 @@
3030

3131
# Create pie chart
3232
chart = pygal.Pie(
33-
width=4800,
34-
height=2700,
33+
width=3600,
34+
height=3600,
3535
style=custom_style,
3636
title="pie-basic · pygal · pyplots.ai",
3737
inner_radius=0,
Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
library: pygal
22
specification_id: pie-basic
3-
created: 2025-12-14 08:44:13+00:00
4-
updated: 2025-12-14 08:44:13+00:00
3+
created: '2025-12-23T00:35:27Z'
4+
updated: '2025-12-23T00:38:26Z'
55
generated_by: claude-opus-4-5-20251101
6-
workflow_run: 20205391737
7-
issue: 678
6+
workflow_run: 20447776548
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/pie-basic/pygal/plot.png
1111
preview_thumb: https://storage.googleapis.com/pyplots-images/plots/pie-basic/pygal/plot_thumb.png
1212
preview_html: https://storage.googleapis.com/pyplots-images/plots/pie-basic/pygal/plot.html
13-
quality_score: 92
13+
quality_score: 91
1414
review:
15-
strengths: []
16-
weaknesses: []
17-
improvements: []
15+
strengths:
16+
- Clean, readable code following KISS principles with clear section comments
17+
- Excellent color palette with good contrast and colorblind accessibility
18+
- Proper use of pygal Style class for comprehensive customization
19+
- Percentage labels are well-positioned and clearly readable inside slices
20+
- Correct title format following pyplots.ai conventions
21+
- Generates both PNG and HTML outputs for flexibility
22+
weaknesses:
23+
- Legend at bottom appears relatively small compared to the pie chart; could increase
24+
legend_font_size for better readability
25+
- Missing slight explosion for emphasis on key slice as suggested in the specification
26+
notes

0 commit comments

Comments
 (0)