diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-11-27 12:24:55 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-11-27 12:24:55 -0500 |
| commit | c8dc62ea99df5fc9f90f11757427492883b43181 (patch) | |
| tree | fdd8973a2bda243ad98fef24012d3b4ff58aad1f /server/chart.go | |
| parent | 99815be7b96d80430285cb946363643b0ae18bf0 (diff) | |
| download | soen422-c8dc62ea99df5fc9f90f11757427492883b43181.zip | |
server: gofmt
Diffstat (limited to 'server/chart.go')
| -rw-r--r-- | server/chart.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/chart.go b/server/chart.go index b6c0471..f37e6ca 100644 --- a/server/chart.go +++ b/server/chart.go @@ -1,14 +1,14 @@ package main import ( + "fmt" + "github.com/wcharczuk/go-chart/v2" "log" "net/http" - "fmt" - "time" - "sync" "slices" "strings" - "github.com/wcharczuk/go-chart/v2" + "sync" + "time" ) type ChartHandler struct { @@ -89,7 +89,7 @@ func buildSeries(room RoomID, in <-chan Entry[Humidity], out chan<- chart.TimeSe y = append(y, float64(e.v)) } out <- chart.TimeSeries{ - Name: string(room), + Name: string(room), XValues: x, YValues: y, } |