summaryrefslogtreecommitdiffstats
path: root/server/chart.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/chart.go')
-rw-r--r--server/chart.go10
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,
}