From c8dc62ea99df5fc9f90f11757427492883b43181 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Wed, 27 Nov 2024 12:24:55 -0500 Subject: server: gofmt --- server/chart.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'server/chart.go') 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, } -- cgit v1.2.3