diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-11-27 13:34:47 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-11-27 13:34:47 -0500 |
| commit | e019a87a79fbabb82b8ec2634440407ce5873d26 (patch) | |
| tree | da70f45d28aaab889d6f90a1c540b89451959f80 | |
| parent | 7fba68a7b34f935b9afa134235b31f0b7833709f (diff) | |
| download | soen422-e019a87a79fbabb82b8ec2634440407ce5873d26.zip | |
server: format chart x axis
| -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 d9af36e..d417021 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), + XAxis: chart.XAxis{ + ValueFormatter: chart.TimeMinuteValueFormatter, + }, YAxis: chart.YAxis{ Range: &chart.ContinuousRange{Min: 0.0, Max: 100.0}, }, |