From 7fba68a7b34f935b9afa134235b31f0b7833709f Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Wed, 27 Nov 2024 13:26:19 -0500 Subject: server: chart y axis range --- server/chart.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/chart.go b/server/chart.go index f37e6ca..d9af36e 100644 --- a/server/chart.go +++ b/server/chart.go @@ -29,6 +29,9 @@ func (h ChartHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { Padding: chart.Box{Top: 20, Left: 20}, }, Series: buildSortedSeries(h.building), + YAxis: chart.YAxis{ + Range: &chart.ContinuousRange{Min: 0.0, Max: 100.0}, + }, } graph.Elements = []chart.Renderable{ chart.Legend(&graph), -- cgit v1.2.3