Skip to content

Commit 8d433a5

Browse files
feat(highcharts): implement line-basic
Implements the basic line plot specification for highcharts library. - Uses LineSeries from highcharts-core - Includes proper axis labels and title - Uses Python Blue color (#306998) from style guide - Targets 4800x2700 resolution as specified - Exports to PNG via Selenium/headless Chrome
1 parent 13e600c commit 8d433a5

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

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)