From 47df7bc43188707dd301008b3922c2f6e687f406 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Tue, 27 Jan 2026 17:01:33 +1100 Subject: [PATCH] fix chart generation --- cmd/ingestd/web/index.html | 20 +++++++++++++++----- cmd/ingestd/web/styles.css | 11 ++++++++++- 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/cmd/ingestd/web/index.html b/cmd/ingestd/web/index.html index 4743dfe..2760f17 100644 --- a/cmd/ingestd/web/index.html +++ b/cmd/ingestd/web/index.html @@ -90,23 +90,33 @@
Temperature (obs vs forecast)
- +
+ +
Wind (obs vs forecast)
- +
+ +
Humidity (obs vs forecast)
- +
+ +
UV Index and Light
- +
+ +
Precipitation (forecast)
- +
+ +
diff --git a/cmd/ingestd/web/styles.css b/cmd/ingestd/web/styles.css index 9b50dcf..1166ee9 100644 --- a/cmd/ingestd/web/styles.css +++ b/cmd/ingestd/web/styles.css @@ -218,9 +218,18 @@ body { margin-bottom: 8px; } +.chart-canvas { + height: 210px; +} + +.chart-card.wide .chart-canvas { + height: 220px; +} + canvas { width: 100%; - height: 210px; + height: 100%; + display: block; } @media (max-width: 980px) {