Skip to content

Commit 87b67c1

Browse files
feat(highcharts): implement line-basic (#504)
## Summary Implements `line-basic` for **highcharts** library. **Parent Issue:** #205 **Sub-Issue:** #485 **Base Branch:** `plot/line-basic` **Attempt:** 1/3 ## Implementation - `plots/highcharts/line/line-basic/default.py` ## Changes - Basic line plot implementation using LineSeries - Uses Python Blue color (#306998) from style guide - Proper axis labels (Time, Value) and title - Markers enabled on data points - Targets 4800x2700px resolution - PNG export via Selenium/headless Chrome Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
1 parent 5001a77 commit 87b67c1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

plots/highcharts/line/line-basic/default.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,16 @@
9292
chrome_options.add_argument("--no-sandbox")
9393
chrome_options.add_argument("--disable-dev-shm-usage")
9494
chrome_options.add_argument("--disable-gpu")
95-
chrome_options.add_argument("--window-size=4800,2700")
95+
chrome_options.add_argument("--window-size=4900,2800")
9696

9797
driver = webdriver.Chrome(options=chrome_options)
9898
driver.get(f"file://{temp_path}")
9999
time.sleep(5)
100-
driver.save_screenshot("plot.png")
100+
101+
# Capture the container element to get exact chart dimensions
102+
container = driver.find_element("id", "container")
103+
container.screenshot("plot.png")
104+
101105
driver.quit()
102106

103107
Path(temp_path).unlink()

0 commit comments

Comments
 (0)