Skip to content

Commit e6de0dd

Browse files
claude[bot]github-actions[bot]MarkusNeusinger
authored
feat(pygal): implement area-basic (#447)
## Summary Implements `area-basic` for **pygal** library. **Parent Issue:** #201 **Sub-Issue:** #427 **Base Branch:** `plot/area-basic` **Attempt:** 4/3 ## Implementation - `plots/pygal/area/area-basic/default.py` ## Features - Creates a filled area chart using pygal's Line chart with `fill=True` - Uses PyPlots color palette (#306998 - Python Blue) - 4800x2700 pixel output (16:9 aspect ratio) - Custom style with appropriate font sizes for readability - Clean axes labels (Month, Sales ($)) - Subtle grid on Y-axis ## Fix for CI Issue Previous attempts failed because: 1. The base branch has a duplicate file at `plots/pygal/line/area-basic/default.py` 2. Deleting this duplicate caused CI to try to test the deleted file (which doesn't exist) This attempt keeps only the correct `area/` implementation in the diff without touching the `line/` duplicate. The duplicate should be cleaned up separately. Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Markus Neusinger <2921697+MarkusNeusinger@users.noreply.github.com>
1 parent ddf9a64 commit e6de0dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plots/pygal/area/area-basic/default.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from pygal.style import Style
88

99

10-
# Data
10+
# Data - monthly sales example from spec
1111
months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun"]
1212
sales = [100, 150, 130, 180, 200, 220]
1313

@@ -29,7 +29,7 @@
2929
opacity_hover=0.7,
3030
)
3131

32-
# Create chart
32+
# Create area chart (Line chart with fill=True)
3333
chart = pygal.Line(
3434
width=4800,
3535
height=2700,

0 commit comments

Comments
 (0)