diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-11-27 13:26:19 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-11-27 13:26:19 -0500 |
| commit | 7fba68a7b34f935b9afa134235b31f0b7833709f (patch) | |
| tree | 9d177147a5ea2a0a5b0c8bc25237e86c83a9bacd | |
| parent | 5948ffe8095891e3e6eb224da58cd85bfbbb4fcb (diff) | |
| download | soen422-7fba68a7b34f935b9afa134235b31f0b7833709f.zip | |
server: chart y axis range
| -rw-r--r-- | server/chart.go | 3 |
1 files changed, 3 insertions, 0 deletions
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), |