Skip to content

Commit d2cb99b

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

2 files changed

Lines changed: 23 additions & 15 deletions

File tree

plots/line-basic/implementations/highcharts.py

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

77
import tempfile
@@ -12,24 +12,24 @@
1212
import numpy as np
1313
from highcharts_core.chart import Chart
1414
from highcharts_core.options import HighchartsOptions
15-
from highcharts_core.options.series.area import LineSeries # LineSeries is in area module
15+
from highcharts_core.options.series.area import LineSeries
1616
from selenium import webdriver
1717
from selenium.webdriver.chrome.options import Options
1818

1919

20-
# Data - Monthly temperature readings
20+
# Data - Monthly temperature readings showing seasonal pattern
2121
np.random.seed(42)
2222
month_labels = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
23-
# Simulate realistic temperature pattern (cold winter, warm summer)
23+
# Realistic temperature pattern: cold winter, warm summer
2424
temperatures = [5, 7, 12, 16, 21, 25, 28, 27, 22, 15, 9, 6]
25-
# Add slight variation
25+
# Add slight natural variation
2626
temperatures = [t + np.random.randn() * 0.5 for t in temperatures]
2727

2828
# Create chart
2929
chart = Chart(container="container")
3030
chart.options = HighchartsOptions()
3131

32-
# Chart settings for 4800x2700
32+
# Chart settings for 4800x2700 canvas
3333
chart.options.chart = {
3434
"type": "line",
3535
"width": 4800,
Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
library: highcharts
22
specification_id: line-basic
3-
created: 2025-12-13 23:42:00+00:00
4-
updated: 2025-12-13 23:42:00+00:00
3+
created: '2025-12-23T00:24:20Z'
4+
updated: '2025-12-23T00:28:13Z'
55
generated_by: claude-opus-4-5-20251101
6-
workflow_run: 20199516640
7-
issue: 653
6+
workflow_run: 20447581042
7+
issue: 0
88
python_version: 3.13.11
9-
library_version: 1.10.3
9+
library_version: unknown
1010
preview_url: https://storage.googleapis.com/pyplots-images/plots/line-basic/highcharts/plot.png
1111
preview_thumb: https://storage.googleapis.com/pyplots-images/plots/line-basic/highcharts/plot_thumb.png
1212
preview_html: https://storage.googleapis.com/pyplots-images/plots/line-basic/highcharts/plot.html
1313
quality_score: 92
1414
review:
15-
strengths: []
16-
weaknesses: []
17-
improvements: []
15+
strengths:
16+
- Excellent visual clarity with properly sized text and markers for the canvas dimensions
17+
- Realistic seasonal temperature data that demonstrates clear line trends
18+
- Proper title format following the spec-id · library · pyplots.ai convention
19+
- Clean KISS code structure with good reproducibility (seed=42)
20+
- Appropriate use of dashed grid lines for subtle visual guidance
21+
weaknesses:
22+
- LineSeries is imported from area module instead of the dedicated line module
23+
- Legend could be hidden for single-series plots to reduce visual clutter
24+
- Data shows smooth seasonal curve but lacks irregular variations that would better
25+
demonstrate line plot flexibility

0 commit comments

Comments
 (0)